summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorHiroshi Inoue2017-06-05 05:11:13 +0000
committerHiroshi Inoue2017-06-05 12:10:47 +0000
commitbc68efd3050f994fe28b1ccc87637e8687b20e82 (patch)
tree29147ae26d5fb39cfea01088d9e21526a464ab74 /test/src
parent7872137c67add02b3d5ac214811c1bcfa11e3ad6 (diff)
Modify cursor-block-delete-test so that the test runs without the specification of UseDeclareFetch option.
Also change the cursor type from SQL_CURSOR_STATIC to SQL_CURSOR_KEYSET_DRIVEN though the type is changed to SQL_CURSOR_STATIC with UseDeclareFetch option.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/cursor-block-delete-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/src/cursor-block-delete-test.c b/test/src/cursor-block-delete-test.c
index ddef812..1831cb6 100644
--- a/test/src/cursor-block-delete-test.c
+++ b/test/src/cursor-block-delete-test.c
@@ -59,9 +59,9 @@ int main(int argc, char **argv)
SQLLEN cbLen[BLOCK];
/****
- * Run this test with UseDeclareFetch = 1 and Fetch=37.
+ * Run this test with Fetch=37 when UseDeclareFecth=1.
*/
- test_connect_ext("UseDeclareFetch=1;Fetch=37");
+ test_connect_ext("UpdatableCursors=1;Fetch=37");
rc = SQLAllocHandle(SQL_HANDLE_STMT, conn, &hstmt);
if (!SQL_SUCCEEDED(rc))
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
CHECK_STMT_RESULT(rc, "SQLSetStmtAttr CONCURRENCY failed", hstmt);
rc = SQLSetConnectAttr(conn, SQL_AUTOCOMMIT, (SQLPOINTER) SQL_AUTOCOMMIT_OFF, 0);
- rc = SQLSetStmtAttr(hstmt, SQL_ATTR_CURSOR_TYPE, (SQLPOINTER) SQL_CURSOR_STATIC, 0);
+ rc = SQLSetStmtAttr(hstmt, SQL_ATTR_CURSOR_TYPE, (SQLPOINTER) SQL_CURSOR_KEYSET_DRIVEN, 0);
CHECK_STMT_RESULT(rc, "SQLSetStmtAttr CURSOR_TYPE failed", hstmt);
rc = SQLExecDirect(hstmt, (SQLCHAR *) "select * from tmptable", SQL_NTS);
CHECK_STMT_RESULT(rc, "select failed", hstmt);