]> granicus.if.org Git - php/commitdiff
test fetching of unsigned int(11)
authorAndrey Hristov <andrey@php.net>
Tue, 8 Nov 2005 14:43:49 +0000 (14:43 +0000)
committerAndrey Hristov <andrey@php.net>
Tue, 8 Nov 2005 14:43:49 +0000 (14:43 +0000)
ext/mysqli/tests/009.phpt

index 0647a8e1400683df9b33cffd08167ff93f5e8966..c69447a00321976d82f11061fd6cd12dde20931f 100644 (file)
@@ -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