diff options
author | Ard Biesheuvel <abies@php.net> | 2004-04-01 16:42:25 +0000 |
---|---|---|
committer | Ard Biesheuvel <abies@php.net> | 2004-04-01 16:42:25 +0000 |
commit | 75df505fe6124e12e0185ee46cc47d2b20140887 (patch) | |
tree | b452d439b89615aeb5c2c73940214cd478cf272c | |
parent | 563e9dd664c755c25c9b63e0d7e72f93d235e41b (diff) | |
download | php-git-75df505fe6124e12e0185ee46cc47d2b20140887.tar.gz |
Test binding of numeric timestamps
-rw-r--r-- | ext/interbase/tests/006.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/interbase/tests/006.phpt b/ext/interbase/tests/006.phpt index 45f397ab21..24724b5f59 100644 --- a/ext/interbase/tests/006.phpt +++ b/ext/interbase/tests/006.phpt @@ -111,7 +111,7 @@ InterBase: binding (may take a while) 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 @@ InterBase: binding (may take a while) 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( |