aboutsummaryrefslogtreecommitdiffstats
path: root/lib/odbc/src
diff options
context:
space:
mode:
authorFredrik Gustafsson <[email protected]>2013-02-08 09:35:29 +0100
committerFredrik Gustafsson <[email protected]>2013-02-08 09:35:29 +0100
commit746be653563d1d6a5166efdadbc8efc2f9504a47 (patch)
treec9756412f6ef780877c14229f31a2e7219d943a6 /lib/odbc/src
parent3d8ad0032e33c15fca7e0a36817f6004ca488a1d (diff)
parent026d6778fdadce1eac8cdf486b159fa0d6669836 (diff)
downloadotp-746be653563d1d6a5166efdadbc8efc2f9504a47.tar.gz
otp-746be653563d1d6a5166efdadbc8efc2f9504a47.tar.bz2
otp-746be653563d1d6a5166efdadbc8efc2f9504a47.zip
Merge branch 'kp/odbc-empty-params/OTP-10798'
* kp/odbc-empty-params/OTP-10798: Add testcases for odbc:param_query Fix odbc:param_query/3 and odbc:param_query/4.
Diffstat (limited to 'lib/odbc/src')
-rw-r--r--lib/odbc/src/odbc.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/odbc/src/odbc.erl b/lib/odbc/src/odbc.erl
index 3eabec9ec3..dde96907e5 100644
--- a/lib/odbc/src/odbc.erl
+++ b/lib/odbc/src/odbc.erl
@@ -902,7 +902,9 @@ param_values(Params) ->
[{_, Values} | _] ->
Values;
[{_, _, Values} | _] ->
- Values
+ Values;
+ [] ->
+ []
end.
%%-------------------------------------------------------------------------