andrey Tue Nov 8 09:43:55 2005 EDT
Modified files: (Branch: PHP_5_1)
/php-src/ext/mysqli/tests 009.phpt
Log:
test fetching of unsigned int(11)
http://cvs.php.net/diff.php/php-src/ext/mysqli/tests/009.phpt?r1=1.6.2.3&r2=1.6.2.4&ty=u
Index: php-src/ext/mysqli/tests/009.phpt
diff -u php-src/ext/mysqli/tests/009.phpt:1.6.2.3
php-src/ext/mysqli/tests/009.phpt:1.6.2.4
--- php-src/ext/mysqli/tests/009.phpt:1.6.2.3 Tue Nov 8 09:06:40 2005
+++ php-src/ext/mysqli/tests/009.phpt Tue Nov 8 09:43:49 2005
@@ -39,8 +39,25 @@
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 @@
[6]=>
int(100)
}
+20123456
+3123456789
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php