#41402 [Opn->Asn]: no safe way to retrieve warnings

From: Date: Wed, 16 May 2007 12:50:24 +0000
Subject: #41402 [Opn->Asn]: no safe way to retrieve warnings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-112687@lists.php.net to get a copy of this message
ID: 41402 Updated by: tony2001@php.net Reported By: corinl at gmx dot de -Status: Open +Status: Assigned -Bug Type: MySQLi related +Bug Type: Feature/Change Request Operating System: debian 686 PHP Version: 5.2.2 -Assigned To: +Assigned To: georg Previous Comments: ------------------------------------------------------------------------ [2007-05-15 16:19:12] corinl at gmx dot de Description: ------------ using $m->query('SHOW WARNINGS') changes $m->affected_rows, so it cannot be used when extending the class. also, affected_rows is write protected so it cannot be saved and restored after fetching the warnings. $m->get_warnings() does not seem to work yet. Reproduce code: --------------- see above Expected result: ---------------- please make $m->query('SHOW WARNINGS') not to change change $m->affected_rows. if this is not desired, please make get_warnings() functional. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41402&edit=1

« previous php.bugs (#112687) next »