diff options
author | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-06-15 15:46:22 +0200 |
---|---|---|
committer | Phil Sturgeon <email@philsturgeon.co.uk> | 2012-06-15 15:46:22 +0200 |
commit | a78f1e77435b37bd956786480dcbf1fc006d20d0 (patch) | |
tree | 045b21e32f14d5d9ed1cdb5c107e1068bca87fe1 /system/database/DB_driver.php | |
parent | 51d6d8406d6493d7e3f8783c5d17a4a1970e9fba (diff) | |
parent | 857b00f4026f149350a6a3447d0c2b0149c1b534 (diff) |
Merge pull request #1487 from IT-Can/query-error-sql-log
[Database] Extra debug info when there is a Query error.
Diffstat (limited to 'system/database/DB_driver.php')
-rw-r--r-- | system/database/DB_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index d056bdb90..28d665fdf 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php @@ -352,7 +352,7 @@ abstract class CI_DB_driver { $error = $this->error(); // Log errors - log_message('error', 'Query error: '.$error['message']); + log_message('error', 'Query error: '.$error['message'] . ' - Invalid query: ' . $sql); if ($this->db_debug) { |