Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
X Lib
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XLibs
X Lib
Commits
1954f05c
Commit
1954f05c
authored
Sep 18, 2016
by
Alex Ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Фикс функции удаления записи
parent
c8fae7bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
TableItem.php
DB/TableItem.php
+1
-2
No files found.
DB/TableItem.php
View file @
1954f05c
...
@@ -446,8 +446,7 @@ class TableItem {
...
@@ -446,8 +446,7 @@ class TableItem {
$this
->
data_columns
);
$this
->
data_columns
);
}
}
if
(
$this
->
sql_type
==
"delete"
&&
$this
->
driver
instanceof
\X\Database\Driver\PDO
)
{
if
(
$this
->
sql_type
==
"delete"
&&
$this
->
driver
instanceof
\X\Database\Driver\PDO
)
{
$whete_obj
=
new
\X\Database\Driver\PDOWhereConstructor
(
$this
->
data_where
);
return
$this
->
driver
->
delete
(
$this
->
table_name
,
$this
->
data_where
);
return
$this
->
driver
->
exec
(
$this
->
sql
.
$whete_obj
->
get_sql
());
}
}
throw
new
\Exception
(
"Internal error"
,
0
);
throw
new
\Exception
(
"Internal error"
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment