Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
zf
Commits
179838e3
Commit
179838e3
authored
Dec 08, 2015
by
Laurent
Browse files
Add select query into error message on failure
parent
dae6634a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
library/Zend/Db/Adapter/Abstract.php
library/Zend/Db/Adapter/Abstract.php
+1
-1
No files found.
library/Zend/Db/Adapter/Abstract.php
View file @
179838e3
...
...
@@ -445,7 +445,7 @@ abstract class Zend_Db_Adapter_Abstract
function
()
use
(
$sql
)
{
$result
=
$this
->
getConnection
()
->
query
(
$sql
);
if
(
false
===
$result
)
throw
new
Zend_Db_Exception
(
$this
->
getConnection
()
->
error
,
throw
new
Zend_Db_Exception
(
$this
->
getConnection
()
->
error
.
': '
.
$sql
,
$this
->
getConnection
()
->
errno
);
return
$result
;
});
...
...
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