X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftypes002.phpt;h=c288ec15869ab71cb82227d0ec22b73f11f4705b;hb=266658d1e9164b544001b5aba3d8d5c6e9568e36;hp=9d36788706311b8a414e5d3f8de8b2fca0288071;hpb=843fc4cf789fa12ef08e6beefc4653498fe73bfd;p=m6w6%2Fext-pq diff --git a/tests/types002.phpt b/tests/types002.phpt index 9d36788..c288ec1 100644 --- a/tests/types002.phpt +++ b/tests/types002.phpt @@ -26,14 +26,16 @@ true as bool, '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[]::text[] as emptyarray +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 -array(13) { +array(15) { ["null"]=> NULL ["bool"]=> @@ -121,5 +123,10 @@ array(13) { ["emptyarray"]=> array(0) { } + ["bytea"]=> + string(4) "foo +" + ["bytea_text"]=> + string(10) "\x666f6f0a" } -DONE \ No newline at end of file +DONE