projects
/
m6w6
/
ext-pq
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
|
inline
| side by side (from parent 1:
74657a4
)
now single row mode for prepare and declare
author
Michael Wallner
<mike@php.net>
Tue, 25 Nov 2014 08:18:12 +0000
(09:18 +0100)
committer
Michael Wallner
<mike@php.net>
Tue, 25 Nov 2014 08:18:12 +0000
(09:18 +0100)
src/php_pqconn.c
patch
|
blob
|
history
diff --git
a/src/php_pqconn.c
b/src/php_pqconn.c
index 4baa5ec0ecf923c5dcc70c8bc4b068b3b517383e..10eb5d42d8a392eab8ebdd080fc59ef2ec856430 100644
(file)
--- a/
src/php_pqconn.c
+++ b/
src/php_pqconn.c
@@
-1314,11
+1314,6
@@
STATUS php_pqconn_prepare_async(zval *object, php_pqconn_object_t *obj, const ch
if (!PQsendPrepare(obj->intern->conn, name, query, params->type.count, params->type.oids)) {
rv = FAILURE;
throw_exce(EX_IO TSRMLS_CC, "Failed to prepare statement (%s)", PHP_PQerrorMessage(obj->intern->conn));
if (!PQsendPrepare(obj->intern->conn, name, query, params->type.count, params->type.oids)) {
rv = FAILURE;
throw_exce(EX_IO TSRMLS_CC, "Failed to prepare statement (%s)", PHP_PQerrorMessage(obj->intern->conn));
-#if HAVE_PQSETSINGLEROWMODE
- } else if (obj->intern->unbuffered && !PQsetSingleRowMode(obj->intern->conn)) {
- rv = FAILURE;
- throw_exce(EX_RUNTIME TSRMLS_CC, "Failed to enable unbuffered mode (%s)", PHP_PQerrorMessage(obj->intern->conn));
-#endif
} else {
rv = SUCCESS;
obj->intern->poller = PQconsumeInput;
} else {
rv = SUCCESS;
obj->intern->poller = PQconsumeInput;
@@
-1446,11
+1441,6
@@
STATUS php_pqconn_declare_async(zval *object, php_pqconn_object_t *obj, const ch
if (!PQsendQuery(obj->intern->conn, decl)) {
rv = FAILURE;
throw_exce(EX_IO TSRMLS_CC, "Failed to declare cursor (%s)", PHP_PQerrorMessage(obj->intern->conn));
if (!PQsendQuery(obj->intern->conn, decl)) {
rv = FAILURE;
throw_exce(EX_IO TSRMLS_CC, "Failed to declare cursor (%s)", PHP_PQerrorMessage(obj->intern->conn));
-#if HAVE_PQSETSINGLEROWMODE
- } else if (obj->intern->unbuffered && !PQsetSingleRowMode(obj->intern->conn)) {
- rv = FAILURE;
- throw_exce(EX_RUNTIME TSRMLS_CC, "Failed to enable unbuffered mode (%s)", PHP_PQerrorMessage(obj->intern->conn));
-#endif
} else {
rv = SUCCESS;
obj->intern->poller = PQconsumeInput;
} else {
rv = SUCCESS;
obj->intern->poller = PQconsumeInput;