diff options
author | Andrey Hristov <andrey@php.net> | 2005-11-08 14:43:49 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2005-11-08 14:43:49 +0000 |
commit | df2c11b731d1e47f252f57fe2fbeae92daadafe8 (patch) | |
tree | 625e71da6dd8de141f89bc1e8efec6e659f0a3c0 | |
parent | 611a05f857dc145bf0e782164c98a04a2d5801f5 (diff) | |
download | php-git-df2c11b731d1e47f252f57fe2fbeae92daadafe8.tar.gz |
test fetching of unsigned int(11)
-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 |