diff options
author | thomascube <thomas@roundcube.net> | 2008-03-19 14:36:47 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-03-19 14:36:47 +0000 |
commit | 9814721e8ddee4e26cc58cd47301e5d741048a22 (patch) | |
tree | 7ae2e67066ba35fe6aa61d1501eefaafc37ee040 /program/include/main.inc | |
parent | 0714b7e09d9a4f26d76bf5ccbe05c356a961f4a2 (diff) |
Enable SQL logging (set 'sql_debug' config param to true); Switch to emulated prepare mode for better performance
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc index f3d0e263b..247cdf1a9 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -74,6 +74,7 @@ function rcmail_startup($task='mail') $DB = new $dbclass($CONFIG['db_dsnw'], $CONFIG['db_dsnr'], $CONFIG['db_persistent']); $DB->sqlite_initials = $INSTALL_PATH.'SQL/sqlite.initial.sql'; + $DB->set_debug((bool)$CONFIG['sql_debug']); $DB->db_connect('w'); // use database for storing session data |