Bugs item #637775, was opened at 2002-11-13 06:00
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=637775&group_id=31885
Category: DB_SQL
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: db_mysql function free() causes warning
Initial Comment:
When executing a second query after a query executing
an "insert", "delete" or "update" statement using the
same db-object, free() calls mysql_free_result() on an
invalid resource-id.
cause: mysql_(db)_query() returns no resource_id
but "true"/"false" on executing "insert", "delete"
or "update" statements. query() tries to free() them.
result: php warning:
"mysql_free_result(): supplied argument is not a valid
MySQL result resource"
(possible?) solution:
in function query():
instead of:
# New query, discard previous result.
if ($this->Query_ID) {
$this->free();
}
use:
# New query, discard previous result.
if ($this->Query_ID && ($this->Query_ID !==true)) {
$this->free();
}
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403611&aid=637775&group_id=31885
|