[geeklog-cvs] geeklog: Set DB_displayError(true) when $_CONF['rootdebug'] is e...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Jan 9 11:08:05 EST 2010
changeset 7590:9f4725b651af
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/9f4725b651af
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 09 15:34:41 2010 +0100
description:
Set DB_displayError(true) when $_CONF['rootdebug'] is enabled, so that we get the actual SQL error on the screen (not only a message telling us that there was an SQL error)
diffstat:
system/lib-database.php | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 49ddc642038e -r 9f4725b651af system/lib-database.php
--- a/system/lib-database.php Sat Jan 09 14:55:45 2010 +0100
+++ b/system/lib-database.php Sat Jan 09 15:34:41 2010 +0100
@@ -8,7 +8,7 @@
// | |
// | Geeklog database library. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2000-2009 by the following authors: |
+// | Copyright (C) 2000-2010 by the following authors: |
// | |
// | Authors: Tony Bibbs, tony AT tonybibbs DOT com |
// +---------------------------------------------------------------------------+
@@ -134,6 +134,9 @@
// Instantiate the database object
$_DB = new database($_DB_host, $_DB_name, $_DB_user, $_DB_pass, 'COM_errorLog',
$_CONF['default_charset']);
+if (isset($_CONF['rootdebug']) && $_CONF['rootdebug']) {
+ DB_displayError(true);
+}
// +---------------------------------------------------------------------------+
// | These are the library functions. In all cases they turn around and make |
More information about the geeklog-cvs
mailing list