mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
#the manual has to be updated
This commit is contained in:
parent
70da059cc0
commit
91b3b49f14
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user