diff options
author | Satoshi Kinoshita <[email protected]> | 2013-01-09 17:27:56 +0900 |
---|---|---|
committer | Fredrik Gustafsson <[email protected]> | 2013-03-27 16:47:51 +0100 |
commit | 16ea5fc0048d121d9bd09e9389142cc3a09ad047 (patch) | |
tree | 9a3117b253e1beca906cd49de9b84003d146d293 /lib/odbc/test/odbc_query_SUITE.erl | |
parent | 0555a3a947c3b63028daf1c4314c4d6bd4066732 (diff) | |
download | otp-16ea5fc0048d121d9bd09e9389142cc3a09ad047.tar.gz otp-16ea5fc0048d121d9bd09e9389142cc3a09ad047.tar.bz2 otp-16ea5fc0048d121d9bd09e9389142cc3a09ad047.zip |
test case for stored procedure with (32bit) integer out params on 64bit platform
Diffstat (limited to 'lib/odbc/test/odbc_query_SUITE.erl')
-rw-r--r-- | lib/odbc/test/odbc_query_SUITE.erl | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lib/odbc/test/odbc_query_SUITE.erl b/lib/odbc/test/odbc_query_SUITE.erl index 062373afa0..e70a9d2eef 100644 --- a/lib/odbc/test/odbc_query_SUITE.erl +++ b/lib/odbc/test/odbc_query_SUITE.erl @@ -43,7 +43,7 @@ suite() -> [{ct_hooks,[ts_install_cth]}]. all() -> case odbc_test_lib:odbc_check() of ok -> - [sql_query, next, {group, scrollable_cursors}, select_count, + [stored_proc, sql_query, next, {group, scrollable_cursors}, select_count, select_next, select_relative, select_absolute, create_table_twice, delete_table_twice, duplicate_key, not_connection_owner, no_result_set, query_error, @@ -172,6 +172,24 @@ end_per_testcase(_Case, Config) -> %%------------------------------------------------------------------------- %% Test cases starts here. %%------------------------------------------------------------------------- +stored_proc(doc)-> + ["Test stored proc with OUT param"]; +stored_proc(suite) -> []; +stored_proc(Config) when is_list(Config) -> + case ?RDBMS of + oracle -> + Ref = ?config(connection_ref, Config), + {updated, _} = + odbc:sql_query(Ref, + ?RDBMS:stored_proc_integer_out()), + Result = ?RDBMS:query_result(), + Result = + ?RDBMS:param_query(Ref), + ok; + _ -> + {skip, "stored proc not yet supported"} + end. + sql_query(doc)-> ["Test the common cases"]; sql_query(suite) -> []; |