diff options
| author | Dan Kalowsky <kalowsky@php.net> | 2002-04-30 13:17:48 +0000 |
|---|---|---|
| committer | Dan Kalowsky <kalowsky@php.net> | 2002-04-30 13:17:48 +0000 |
| commit | d55c9134c81cd3b697f8e1abf713396f2a422345 (patch) | |
| tree | ea3d72c6ed547dd1e14b34889e62aeb93874ae96 /ext/odbc/php_odbc.c | |
| parent | 813a795c642d5d1cac2c35c3b0e48de313cc0b37 (diff) | |
| download | php-git-d55c9134c81cd3b697f8e1abf713396f2a422345.tar.gz | |
reverting the cursor change as it seems to break many ODBC drivers.
Diffstat (limited to 'ext/odbc/php_odbc.c')
| -rw-r--r-- | ext/odbc/php_odbc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index 4bf7468e1a..5942c97683 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -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); |
