cvs: php-src /ext/mysqli mysqli_api.c
| From: | Andrey Hristov | Date: | Sat, 07 May 2005 08:23:39 +0000 |
| Subject: | cvs: php-src /ext/mysqli mysqli_api.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-31763@lists.php.net to get a copy of this message | ||
andrey Sat May 7 04:23:39 2005 EDT
Modified files:
/php-src/ext/mysqli mysqli_api.c
Log:
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
#the manual has to be updated
http://cvs.php.net/diff.php/php-src/ext/mysqli/mysqli_api.c?r1=1.111&r2=1.112&ty=u
Index: php-src/ext/mysqli/mysqli_api.c
diff -u php-src/ext/mysqli/mysqli_api.c:1.111 php-src/ext/mysqli/mysqli_api.c:1.112
--- php-src/ext/mysqli/mysqli_api.c:1.111 Sat May 7 04:03:35 2005
+++ php-src/ext/mysqli/mysqli_api.c Sat May 7 04:23:39 2005
@@ -15,7 +15,7 @@
| Author: Georg Richter <georg@php.net> |
+----------------------------------------------------------------------+
- $Id: mysqli_api.c,v 1.111 2005/05/07 08:03:35 andrey Exp $
+ $Id: mysqli_api.c,v 1.112 2005/05/07 08:23:39 andrey Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -682,6 +682,11 @@
case 1:
RETURN_FALSE;
break;
+#ifdef MYSQL_DATA_TRUNCATED
+ case MYSQL_DATA_TRUNCATED:
+ RETURN_LONG(MYSQL_DATA_TRUNCATED);
+ break;
+#endif
default:
RETURN_NULL();
break;