Skip to content

LOGSQL Insert Failed: insert into adodb_logsql Commands out of sync; you can't run this command now #463

@ivanbogomoloff

Description

@ivanbogomoloff

Here https://github.com/ADOdb/ADOdb/blob/hotfix/5.20/adodb-perf.inc.php#L169
I get error if my driver is ADODB_mysqli

LOGSQL Insert Failed: insert into adodb_logsql (created,sql0,sql1,params,tracer,timer) values( NOW(),?,?,?,?,?)
Commands out of sync; you can't run this command now

Error fixed after add this code

if ($errN != 0 || $time >= $ADODB_PERF_MIN) {
			//
			if($conn instanceof ADODB_mysqli && $conn->_queryID){
				mysqli_free_result($conn->_queryID);
            }
			$ok = $conn->Execute($isql,$arr);
		} else
			$ok = true;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmysqliMySQL and compatible drivers (MariaDB, etc) (Tier 1)perfPerformance monitoring

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions