diff options
author | Matteo Beccati <mbeccati@php.net> | 2009-03-28 02:58:04 +0000 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2009-03-28 02:58:04 +0000 |
commit | 6c6c8febf12bdf7c80a28fe3a4009c8b855b4fac (patch) | |
tree | 433933501fdd2f696530955617263d727f2bb1a3 /ext/pdo_pgsql/pgsql_driver.c | |
parent | fb2a077d5b055690ddfe610f2d20c232c285e0c6 (diff) | |
download | php-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.c | 4 |
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; |