File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ --TEST--
2+ Check for data type INT128 (Firebird 4.0 or above)
3+ --SKIPIF--
4+ <?php
5+ include ("skipif.inc " );
6+ ?>
7+ --FILE--
8+ <?php
9+
10+ require ("interbase.inc " );
11+
12+ $ db = ibase_connect ($ test_base );
13+
14+ ibase_query (
15+ "create table test_dt (
16+ v_int128 int128 not null
17+ ) " );
18+ ibase_commit ();
19+
20+ ibase_query ("insert into test_dt (v_int128) values (1234) " );
21+ ibase_query ("insert into test_dt (v_int128) values (-170141183460469231731687303715884105728) " );
22+ ibase_query ("insert into test_dt (v_int128) values (170141183460469231731687303715884105727) " );
23+
24+ $ sql = 'select * from test_dt ' ;
25+ $ query = ibase_query ($ sql );
26+ while (($ row = ibase_fetch_assoc ($ query ))) {
27+ var_dump ($ row );
28+ }
29+
30+ ibase_free_result ($ query );
31+ ibase_close ();
32+
33+ ?>
34+ --EXPECTF--
35+ array(1) {
36+ ["V_INT128"]=>
37+ string(4) "1234"
38+ }
39+ array(1) {
40+ ["V_INT128"]=>
41+ string(40) "-170141183460469231731687303715884105728"
42+ }
43+ array(1) {
44+ ["V_INT128"]=>
45+ string(39) "170141183460469231731687303715884105727"
46+ }
You can’t perform that action at this time.
0 commit comments