aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <ingela@erlang.org>2011-09-02 10:03:24 +0200
committerIngela Anderton Andin <ingela@erlang.org>2011-09-02 10:03:24 +0200
commitcb2fd40dfbdd7554e5ea256e6ed8a6f3ef8425fe (patch)
treef47abd486be3a238940c241bd3a7f4f7acd3b56f
parent53db3ed988b3f74924a15f204e7a44e5914d2c8f (diff)
parent6d28297e06abf065c150bd84dec6aa1d9d5b7efd (diff)
downloadotp-cb2fd40dfbdd7554e5ea256e6ed8a6f3ef8425fe.tar.gz
otp-cb2fd40dfbdd7554e5ea256e6ed8a6f3ef8425fe.tar.bz2
otp-cb2fd40dfbdd7554e5ea256e6ed8a6f3ef8425fe.zip
Merge branch 'ia/odbc/stored-procedures-does-not-cleanup/OTP-9444' into dev
* ia/odbc/stored-procedures-does-not-cleanup/OTP-9444: When using output parameters the internal odbc state was not correctly cleaned causing the next call to param_query to missbehave.
-rw-r--r--lib/odbc/c_src/odbcserver.c1
-rw-r--r--lib/odbc/test/odbc_test_lib.erl9
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/odbc/c_src/odbcserver.c b/lib/odbc/c_src/odbcserver.c
index 11e311d72d..ab2d7fe210 100644
--- a/lib/odbc/c_src/odbcserver.c
+++ b/lib/odbc/c_src/odbcserver.c
@@ -772,6 +772,7 @@ static db_result_msg db_param_query(byte *buffer, db_state *state)
}
associated_result_set(state) = FALSE;
param_query(state) = TRUE;
+ out_params(state) = FALSE;
msg = encode_empty_message();
diff --git a/lib/odbc/test/odbc_test_lib.erl b/lib/odbc/test/odbc_test_lib.erl
index 2d6bf5fcac..4d7d1ae2fa 100644
--- a/lib/odbc/test/odbc_test_lib.erl
+++ b/lib/odbc/test/odbc_test_lib.erl
@@ -97,10 +97,13 @@ linux_issue() ->
string:tokens(binary_to_list(Binary), " ").
is_sles11(IssueTokens) ->
- lists:member(11, IssueTokens).
+ lists:member("11", IssueTokens).
is_sles10(IssueTokens) ->
- lists:member(10, IssueTokens).
+ lists:member("10", IssueTokens).
is_sles9(IssueTokens) ->
- lists:member(9, IssueTokens).
+ lists:member("9", IssueTokens).
+
+is_ubuntu(IssueTokens) ->
+ lists:member("Ubuntu", IssueTokens).