diff options
-rw-r--r-- | ext/mysqli/tests/009.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/mysqli/tests/009.phpt b/ext/mysqli/tests/009.phpt index 0647a8e140..c69447a003 100644 --- a/ext/mysqli/tests/009.phpt +++ b/ext/mysqli/tests/009.phpt @@ -39,8 +39,25 @@ mysqli fetch bigint values var_dump($test); mysqli_stmt_close($stmt); + + mysqli_query($link,"DROP TABLE IF EXISTS test_bind_fetch_uint"); + mysqli_query($link,"CREATE TABLE test_bind_fetch_uint(c1 integer unsigned, c2 integer unsigned)"); + + mysqli_query($link, "INSERT INTO test_bind_fetch_uint (c1,c2) VALUES (20123456, 3123456789)"); + + $stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch_uint"); + mysqli_bind_result($stmt, $c1, $c2); + mysqli_execute($stmt); + $rc = mysqli_fetch($stmt); + + echo $c1, "\n", $c2, "\n"; + + mysqli_stmt_close($stmt); + + mysqli_close($link); ?> + --EXPECT-- array(7) { [0]=> @@ -58,3 +75,5 @@ array(7) { [6]=> int(100) } +20123456 +3123456789 |