[Patch] for #13592

From: Date: Mon, 08 Oct 2001 02:48:20 +0000
Subject: [Patch] for #13592
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-67518@lists.php.net to get a copy of this message
Can someone with sufficient karma apply this patch ? It fixes the report. - Markus On Mon, Oct 08, 2001 at 02:21:38AM -0000, wchu010@cs.auckland.ac.nz wrote : > From: wchu010@cs.auckland.ac.nz > Operating system: Linux > PHP version: 4.0.6 > PHP Bug Type: MySQL related > Bug description: mysql_field_flags returns nothing for "SET" string type > > Calls to mysql_field_flags() with MySQL "SET" string type (see MySQL manual > 7.3.4.4), did not return anything. "SET" is similar to "ENUM" in that both > are a sub-type of "STRING", so a call to mysql_field_type() always returns > "string". > > However in order to tell the difference between regular STRING, ENUM and > SET it is neccessary to call mysql_field_flags() to get the details. eg > For "ENUM", mysql_field_flags returns "enum". But not for "SET". > > (The MySQL version I am using is 3.23.42) > > Thanks. > -- > Edit bug report at: http://bugs.php.net/?id=13592&edit=1 > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: mfischer@guru.josefine.at PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -All your scripts are belong to Zend-

? diff Index: php_mysql.c =================================================================== RCS file: /repository/php4/ext/mysql/php_mysql.c,v retrieving revision 1.101 diff -u -r1.101 php_mysql.c --- php_mysql.c 25 Sep 2001 22:48:39 -0000 1.101 +++ php_mysql.c 8 Oct 2001 02:40:20 -0000 @@ -1937,6 +1937,11 @@ strcat(buf, "timestamp "); } #endif +#ifdef SET_FLAG + if (mysql_field->flags&SET_FLAG) { + strcat(buf, "set "); + } +#endif len = strlen(buf); /* remove trailing space, if present */ if (len && buf[len-1] == ' ') {
« previous php.dev (#67518) next »