Merge pull request #33 from m6w6/fix-19
[m6w6/ext-pq] / tests / types002.phpt
index 431ee3e1408734a74f688c0c06bb53d08b8a71be..e2d772d29393b8bbb17d5a90cabb3b05e8a287c2 100644 (file)
@@ -22,10 +22,10 @@ true as bool,
 1.1::float4 as float4,
 2.2::float8 as float8,
 '2013-01-01'::date as date,
-1::abstime as abstime,
 '2013-01-01 01:01:01'::timestamp as timestamp,
 '2013-01-01 01:01:01 UTC'::timestamptz as timestamptz,
-array[array[1,2,3],array[4,5,6],array[NULL::int,NULL::int,NULL::int]] as intarray  
+array[array[1,2,3],array[4,5,6],array[NULL::int,NULL::int,NULL::int]] as intarray,
+array[box(point(1,2),point(2,3)),box(point(4,5),point(5,6))] as boxarray
 ");
 var_dump($r->fetchRow(pq\Result::FETCH_ASSOC));
 ?>
@@ -58,17 +58,6 @@ array(12) {
     ["timezone"]=>
     string(3) "UTC"
   }
-  ["abstime"]=>
-  object(pq\DateTime)#%d (4) {
-    ["format"]=>
-    string(11) "Y-m-d H:i:s"
-    ["date"]=>
-    string(%d) "1970-01-01 00:00:01%r(\.000000)?%r"
-    ["timezone_type"]=>
-    int(1)
-    ["timezone"]=>
-    string(6) "+00:00"
-  }
   ["timestamp"]=>
   object(pq\DateTime)#%d (4) {
     ["format"]=>
@@ -121,5 +110,12 @@ array(12) {
       NULL
     }
   }
+  ["boxarray"]=>
+  array(2) {
+    [0]=>
+    string(11) "(2,3),(1,2)"
+    [1]=>
+    string(11) "(5,6),(4,5)"
+  }
 }
 DONE
\ No newline at end of file