summaryrefslogtreecommitdiff
path: root/test/src/deprecated-test.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2014-03-24 06:49:26 +0000
committerHeikki Linnakangas2014-03-24 06:49:26 +0000
commite7ca897aa5f92aa1e2e3c62d2aff90ea5fc6a04d (patch)
treee16d32efc3b5d678f1ae0066586237fd75a273f3 /test/src/deprecated-test.c
parent1a9c12729e7a1adcf065f0accf5d54f017253bd3 (diff)
Avoid deprecated SQLAllocStmt/SQLFreeStmt in regression tests.
The deprecated functions have a test case of their own. Michael Paquier
Diffstat (limited to 'test/src/deprecated-test.c')
-rw-r--r--test/src/deprecated-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/deprecated-test.c b/test/src/deprecated-test.c
index 923ac46..0883434 100644
--- a/test/src/deprecated-test.c
+++ b/test/src/deprecated-test.c
@@ -307,7 +307,7 @@ main(int argc, char **argv)
/* Grab new connection and handle for the next tests */
test_connect();
- rc = SQLAllocStmt(conn, &hstmt);
+ rc = SQLAllocHandle(SQL_HANDLE_STMT, conn, &hstmt);
if (!SQL_SUCCEEDED(rc))
{
print_diag("failed to allocate stmt handle", SQL_HANDLE_DBC, conn);