return MYSQLI_DATA_TRUNCATED if data happens to be truncated

#the manual has to be updated
This commit is contained in:
Andrey Hristov 2005-05-07 08:23:39 +00:00
parent 70da059cc0
commit 91b3b49f14

View 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;