From: Andrey Hristov Date: Tue, 8 Nov 2005 14:43:49 +0000 (+0000) Subject: test fetching of unsigned int(11) X-Git-Tag: php-5.1.0RC5~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df2c11b731d1e47f252f57fe2fbeae92daadafe8;p=php test fetching of unsigned int(11) --- 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