Change updatable cursors for 'select func()' to not return
authorHiroshi Inoue <inoue@tpf.co.jp>
Mon, 21 Oct 2002 08:12:15 +0000 (08:12 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Mon, 21 Oct 2002 08:12:15 +0000 (08:12 +0000)
an error(just changing the cursor to be read-only) per bug
report from Keisaku Sasaki.

convert.c

index 811740b7e6f42b3d6e0f5905875699dede603a71..e1cc297bcd29317dba2b4d598a55643eedc29e12 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -1696,7 +1696,8 @@ copy_statement_with_parameters(StatementClass *stmt)
        if (stmt->parse_status == STMT_PARSE_FATAL)
        {
            stmt->options.scroll_concurrency = SQL_CONCUR_READ_ONLY;
-           return SQL_ERROR;
+           if (stmt->options.cursor_type == SQL_CURSOR_KEYSET_DRIVEN)
+               stmt->options.cursor_type = SQL_CURSOR_STATIC;
        }
        else if (!stmt->updatable)
        {