Added a new table for logging ADODB requests and a config variable to

turn it on.  Very useful for debugging performance issues.
This commit is contained in:
moodler
2005-02-18 14:12:38 +00:00
parent 28012da1f6
commit ceff930730
6 changed files with 69 additions and 14 deletions

View File

@ -921,6 +921,17 @@ function main_upgrade($oldversion=0) {
table_column('user', '', 'dstpreset', 'int', '10', '', '0', 'not null', 'timezone');
}
if ($oldversion < 2005021800) {
modify_database("","CREATE TABLE adodb_logsql (
created timestamp NOT NULL,
sql0 varchar(250) NOT NULL,
sql1 text NOT NULL,
params text NOT NULL,
tracer text NOT NULL,
timer decimal(16,6) NOT NULL
);");
}
return $result;
}