From 7552fe23ff061767d9a36bf55478fea3c38faaac Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 12 Jan 2005 05:58:58 +0000 Subject: [PATCH] make scrollable cursors consistent with odbc; removing bogus attribute --- ext/pdo_oci/oci_driver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index 1d72d2c55d..01a79c1699 100755 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -198,8 +198,9 @@ static int oci_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, pd ub4 prefetch; #if HAVE_OCISTMTFETCH2 - S->exec_type = pdo_attr_lval(driver_options, PDO_ATTR_SCROLL, - 0 TSRMLS_CC) ? OCI_STMT_SCROLLABLE_READONLY : OCI_DEFAULT; + S->exec_type = pdo_attr_lval(driver_options, PDO_ATTR_CURSOR, + PDO_CURSOR_FWDONLY TSRMLS_CC) == PDO_CURSOR_SCROLL ? + OCI_STMT_SCROLLABLE_READONLY : OCI_DEFAULT; #else S->exec_type = OCI_DEFAULT; #endif -- 2.50.1