DONE
--EXPECTF--
Test
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
int(1)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
int(1)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
DONE
DONE
--EXPECTF--
Test
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
int(1)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
DONE
DONE
--EXPECTF--
Test
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
int(1)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
DONE
DONE
--EXPECTF--
Test
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(9)
["statusMessage"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(9)
["statusMessage"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(9)
["statusMessage"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(2)
["statusMessage"]=>
int(3)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
DONE
+++ /dev/null
---TEST--
-fetch bound
---SKIPIF--
-<?php
-include "_skipif.inc";
-if (pq\Types::DEFINED) {
- die("skip pq\Types::DEFINED == true");
-}
-?>
---FILE--
-<?php
-echo "Test\n";
-
-include "_setup.inc";
-
-$c = new pq\Connection(PQ_DSN);
-$r = $c->exec("select 1*a,2*a,3*a from generate_series(2,3) a");
-$r->bind(0, $a);
-$r->bind(1, $b);
-$r->bind(2, $c);
-while ($s = $r->fetchBound()) {
- var_dump($s,$a,$b,$c);
-}
-?>
-DONE
---EXPECT--
-Test
-array(3) {
- [0]=>
- &string(1) "2"
- [1]=>
- &string(1) "4"
- [2]=>
- &string(1) "6"
-}
-string(1) "2"
-string(1) "4"
-string(1) "6"
-array(3) {
- [0]=>
- &string(1) "3"
- [1]=>
- &string(1) "6"
- [2]=>
- &string(1) "9"
-}
-string(1) "3"
-string(1) "6"
-string(1) "9"
-DONE
--SKIPIF--
<?php
include "_skipif.inc";
-if (!pq\Types::DEFINED) {
- die("skip pq\Types::DEFINED == false");
-}
?>
--FILE--
<?php
--EXPECTF--
Test
bool(true)
-object(pq\Result)#%d (7) {
+object(pq\Result)#%d (8) {
["status"]=>
int(7)
["statusMessage"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(255)
}
ERROR: canceling statement due to user request
DONE
--SKIPIF--
<?php
include "_skipif.inc";
-if (!pq\Types::DEFINED) {
- die("skip pq\\Types::DEFINED == false\n");
-}
?>
--FILE--
<?php
Warning: pq\Result not initialized in %s on line %d
Warning: pq\Result not initialized in %s on line %d
-object(pq\Result)#%d (7) {
+
+Warning: pq\Result not initialized in %s on line %d
+
+Warning: pq\Result not initialized in %s on line %d
+object(pq\Result)#%d (8) {
["status"]=>
NULL
["statusMessage"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(0)
}
-array(8) {
+array(9) {
["dummy"]=>
int(2)
["status"]=>
int(0)
["fetchType"]=>
int(0)
+ ["autoConvert"]=>
+ int(0)
}
Done
DONE
--EXPECTF--
Test
-object(pq\Connection)#%d (18) {
+object(pq\Connection)#%d (19) {
["status"]=>
int(0)
["transactionStatus"]=>
bool(false)
["defaultTransactionDeferrable"]=>
bool(false)
+ ["defaultAutoConvert"]=>
+ int(255)
}
int(0)
bool(false)
bool(false)
-object(pq\Connection)#%d (18) {
+object(pq\Connection)#%d (19) {
["status"]=>
int(0)
["transactionStatus"]=>
bool(false)
["defaultTransactionDeferrable"]=>
bool(false)
+ ["defaultAutoConvert"]=>
+ int(255)
}
int(2)
bool(true)
--SKIPIF--
<?php
include "_skipif.inc";
-if (!pq\Types::DEFINED) {
- die("skip pq\\Types::DEFINED == false\n");
-}
?>
--INI--
date.timezone=UTC