projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix #42
[m6w6/ext-pq]
/
tests
/
types002.phpt
diff --git
a/tests/types002.phpt
b/tests/types002.phpt
index e2d772d29393b8bbb17d5a90cabb3b05e8a287c2..c288ec15869ab71cb82227d0ec22b73f11f4705b 100644
(file)
--- a/
tests/types002.phpt
+++ b/
tests/types002.phpt
@@
-25,14
+25,17
@@
true as bool,
'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,
'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[box(point(1,2),point(2,3)),box(point(4,5),point(5,6))] as boxarray
+array[box(point(1,2),point(2,3)),box(point(4,5),point(5,6))] as boxarray,
+array[]::text[] as emptyarray,
+'foo\n'::bytea as bytea,
+'foo\n'::bytea::text as bytea_text
");
var_dump($r->fetchRow(pq\Result::FETCH_ASSOC));
?>
DONE
--EXPECTF--
Test
");
var_dump($r->fetchRow(pq\Result::FETCH_ASSOC));
?>
DONE
--EXPECTF--
Test
-array(1
2
) {
+array(1
5
) {
["null"]=>
NULL
["bool"]=>
["null"]=>
NULL
["bool"]=>
@@
-117,5
+120,13
@@
array(12) {
[1]=>
string(11) "(5,6),(4,5)"
}
[1]=>
string(11) "(5,6),(4,5)"
}
+ ["emptyarray"]=>
+ array(0) {
+ }
+ ["bytea"]=>
+ string(4) "foo
+"
+ ["bytea_text"]=>
+ string(10) "\x666f6f0a"
}
}
-DONE
\ No newline at end of file
+DONE