]> granicus.if.org Git - php/commitdiff
reverting the cursor change as it seems to break many ODBC drivers.
authorDan Kalowsky <kalowsky@php.net>
Tue, 30 Apr 2002 13:17:48 +0000 (13:17 +0000)
committerDan Kalowsky <kalowsky@php.net>
Tue, 30 Apr 2002 13:17:48 +0000 (13:17 +0000)
ext/odbc/php_odbc.c

index 4bf7468e1a9f8db692885001756d6b1f2abb9067..5942c97683ff2fe999ce385d5b56ee3615baf31c 100644 (file)
@@ -810,7 +810,7 @@ PHP_FUNCTION(odbc_prepare)
                        /* Try to set CURSOR_TYPE to dynamic. Driver will replace this with other
                           type if not possible.
                        */
-                       if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_FORWARD_ONLY)
+                       if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC)
                                == SQL_ERROR) {
                                odbc_sql_error(conn, result->stmt, " SQLSetStmtOption");
                                SQLFreeStmt(result->stmt, SQL_DROP);
@@ -1171,7 +1171,7 @@ PHP_FUNCTION(odbc_exec)
                        /* Try to set CURSOR_TYPE to dynamic. Driver will replace this with other
                           type if not possible.
                         */
-                       if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_FORWARD_ONLY)
+                       if (SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, SQL_CURSOR_DYNAMIC)
                                == SQL_ERROR) {
                                odbc_sql_error(conn, result->stmt, " SQLSetStmtOption");
                                SQLFreeStmt(result->stmt, SQL_DROP);