Mark transaction as open when started async
authorChris Wright <daverandom@php.net>
Thu, 27 Nov 2014 16:18:47 +0000 (16:18 +0000)
committerChris Wright <daverandom@php.net>
Thu, 27 Nov 2014 16:18:47 +0000 (16:18 +0000)
src/php_pqconn.c

index 10eb5d4..16d3f77 100644 (file)
@@ -1736,6 +1736,7 @@ static PHP_METHOD(pqconn, startTransactionAsync) {
 
                        php_pq_object_addref(obj TSRMLS_CC);
                        txn->conn = obj;
+                       txn->open = 1;
                        txn->isolation = isolation;
                        txn->readonly = readonly;
                        txn->deferrable = deferrable;