Skip to content
Snippets Groups Projects
Commit 31741b2c authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors...

- Patch #25522 by Cvbge: _db_query() does not return FALSE in case of errors as stated in documentation.
parent 6733014f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -97,6 +97,7 @@ function _db_query($query, $debug = 0) { ...@@ -97,6 +97,7 @@ function _db_query($query, $debug = 0) {
} }
else { else {
trigger_error(mysql_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR); trigger_error(mysql_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
return FALSE;
} }
} }
......
...@@ -84,6 +84,7 @@ function _db_query($query, $debug = 0) { ...@@ -84,6 +84,7 @@ function _db_query($query, $debug = 0) {
} }
else { else {
trigger_error(pg_last_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR); trigger_error(pg_last_error() ."\nquery: ". htmlspecialchars($query), E_USER_ERROR);
return FALSE;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment