abies Thu Apr 1 11:42:25 2004 EDT Modified files: /php-src/ext/interbase/tests 006.phpt Log: Test binding of numeric timestamps http://cvs.php.net/diff.php/php-src/ext/interbase/tests/006.phpt?r1=1.8&r2=1.9&ty=u Index: php-src/ext/interbase/tests/006.phpt diff -u php-src/ext/interbase/tests/006.phpt:1.8 php-src/ext/interbase/tests/006.phpt:1.9 --- php-src/ext/interbase/tests/006.phpt:1.8 Fri Sep 5 13:02:02 2003 +++ php-src/ext/interbase/tests/006.phpt Thu Apr 1 11:42:25 2004 @@ -5,7 +5,7 @@ --POST-- --GET-- --FILE-- -<?php /* $Id: 006.phpt,v 1.8 2003/09/05 17:02:02 abies Exp $ */ +<?php /* $Id: 006.phpt,v 1.9 2004/04/01 16:42:25 abies Exp $ */ require("interbase.inc"); @@ -111,7 +111,7 @@ for($iter = 0; $iter < 3; $iter++) { /* prepare data */ $v_char = rand_str(1000); - $v_date = rand_datetime(); + $v_date = (int)rand_number(10,0,0); $v_decimal = rand_number(12,3); $v_double = rand_number(20); $v_float = rand_number(7); @@ -127,8 +127,8 @@ ibase_query("insert into test6 (iter, v_char,v_date,v_decimal, v_integer,v_numeric,v_smallint,v_varchar) - values (666, '$v_char','$v_date',$v_decimal, $v_integer, - $v_numeric, $v_smallint, '$v_varchar')"); + values (666, '$v_char',?,$v_decimal, $v_integer, + $v_numeric, $v_smallint, '$v_varchar')",$v_date); /* test all types */ if(!($sel = ibase_query(
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php