// Thx to Fernando Ortiz, mailto:fortiz#lacorona.com.mx
// With info taken from http://www.oninit.com/oninit/sysmaster/index.html
//
classperf_informixextendsadodb_perf{
// Maximum size on varchar upto 9.30 255 chars
// better truncate varchar to 255 than char(4000) ?
var$createTableSQL="CREATE TABLE adodb_logsql (
createddatetimeyeartosecondNOTNULL,
sql0varchar(250)NOTNULL,
sql1varchar(255)NOTNULL,
paramsvarchar(255)NOTNULL,
tracervarchar(255)NOTNULL,
timerdecimal(16,6)NOTNULL
)";
var$tablesSQL="select a.tabname tablename, ti_nptotal*2 size_in_k, ti_nextns extents, ti_nrows records from systables c, sysmaster:systabnames a, sysmaster:systabinfo b where c.tabname not matches 'sys*' and c.partnum = a.partnum and c.partnum = b.ti_partnum";