]> granicus.if.org Git - php/commitdiff
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
authorAndrey Hristov <andrey@php.net>
Sat, 7 May 2005 08:23:39 +0000 (08:23 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 7 May 2005 08:23:39 +0000 (08:23 +0000)
#the manual has to be updated

ext/mysqli/mysqli_api.c

index 2af004d6947794187aa84587d2948de59ebd7e7d..67f490fe6193bfa0221239d4db07cc1f660c7895 100644 (file)
@@ -682,6 +682,11 @@ PHP_FUNCTION(mysqli_stmt_fetch)
                case 1:
                        RETURN_FALSE;
                break;
+#ifdef MYSQL_DATA_TRUNCATED
+               case MYSQL_DATA_TRUNCATED:
+                       RETURN_LONG(MYSQL_DATA_TRUNCATED);
+                       break;
+#endif
                default:
                        RETURN_NULL();
                break;