summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
diff options
context:
space:
mode:
authorMatteo Beccati <mbeccati@php.net>2009-03-28 02:58:04 +0000
committerMatteo Beccati <mbeccati@php.net>2009-03-28 02:58:04 +0000
commit6c6c8febf12bdf7c80a28fe3a4009c8b855b4fac (patch)
tree433933501fdd2f696530955617263d727f2bb1a3 /ext/pdo_pgsql/pgsql_driver.c
parentfb2a077d5b055690ddfe610f2d20c232c285e0c6 (diff)
downloadphp-git-6c6c8febf12bdf7c80a28fe3a4009c8b855b4fac.tar.gz
- Fixed bug #44861 (scrollable cursor don't work with pgsql)
Diffstat (limited to 'ext/pdo_pgsql/pgsql_driver.c')
-rw-r--r--ext/pdo_pgsql/pgsql_driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c
index 04617d8968..ed5b56f028 100644
--- a/ext/pdo_pgsql/pgsql_driver.c
+++ b/ext/pdo_pgsql/pgsql_driver.c
@@ -232,13 +232,13 @@ static int pgsql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len,
if (S->cursor_name) {
efree(S->cursor_name);
}
- /* TODO: check how scrollable cursors related to prepared statements */
spprintf(&S->cursor_name, 0, "pdo_pgsql_cursor_%08x", (unsigned int) stmt);
+ emulate = 1;
}
#if HAVE_PQPREPARE
- if (driver_options) {
+ else if (driver_options) {
if (pdo_attr_lval(driver_options,
PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT, 0 TSRMLS_CC) == 1) {
emulate = 1;