X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=aa754acb91716987816898feb6024d62b0e0f283;hp=f374f666c5888696c9a3cfbbb7560ce69c4f8f80;hb=ec79f18c30c64021ff78b631f713a4b1b380fd86;hpb=86138e39ba4bfc44b3eb1c4eaa3dccabcc3cea53 diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index f374f66..aa754ac 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -16,18 +16,21 @@ $c->execAsync("SELECT pg_sleep(2)"); $x->cancel(); +var_dump($c === $x->connection); var_dump($c->getResult()); - +printf("%s\n", $c->errorMessage); ?> DONE --EXPECTF-- Test -object(pq\Result)#%d (6) { +bool(true) +object(pq\Result)#%d (7) { ["status"]=> int(7) + ["statusMessage"]=> + string(11) "FATAL_ERROR" ["errorMessage"]=> - string(48) "ERROR: canceling statement due to user request -" + string(47) "ERROR: canceling statement due to user request" ["numRows"]=> int(0) ["numCols"]=> @@ -37,4 +40,5 @@ object(pq\Result)#%d (6) { ["fetchType"]=> int(0) } +ERROR: canceling statement due to user request DONE