diff options
author | Hanfei Shen <[email protected]> | 2011-05-04 00:21:57 +0800 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-06-22 09:36:45 +0200 |
commit | 64633846cc6959eca307d37e7b879ac14182f3c3 (patch) | |
tree | 40e5eee967631e9bcd382c7fbb92daec344ec84b /lib/odbc/src | |
parent | b9d8ae5aa52774ed0ce12c9d21ad7f3670c2dca1 (diff) | |
download | otp-64633846cc6959eca307d37e7b879ac14182f3c3.tar.gz otp-64633846cc6959eca307d37e7b879ac14182f3c3.tar.bz2 otp-64633846cc6959eca307d37e7b879ac14182f3c3.zip |
Add support for SQL_WLONGVARCHAR
Diffstat (limited to 'lib/odbc/src')
-rw-r--r-- | lib/odbc/src/odbc.erl | 3 | ||||
-rw-r--r-- | lib/odbc/src/odbc_internal.hrl | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/odbc/src/odbc.erl b/lib/odbc/src/odbc.erl index 2634450d4a..68497292db 100644 --- a/lib/odbc/src/odbc.erl +++ b/lib/odbc/src/odbc.erl @@ -925,6 +925,9 @@ fix_params({{sql_wchar, Max}, InOut, Values}) -> fix_params({{sql_wvarchar, Max}, InOut, Values}) -> NewValues = string_terminate(Values), {?USER_WVARCHAR, Max, fix_inout(InOut), NewValues}; +fix_params({{sql_wlongvarchar, Max}, InOut, Values}) -> + NewValues = string_terminate(Values), + {?USER_WLONGVARCHAR, Max, fix_inout(InOut), NewValues}; fix_params({{sql_float, Precision}, InOut, Values}) -> {?USER_FLOAT, Precision, fix_inout(InOut), Values}; fix_params({sql_real, InOut, Values}) -> diff --git a/lib/odbc/src/odbc_internal.hrl b/lib/odbc/src/odbc_internal.hrl index aa60120f9a..c0e7d9657b 100644 --- a/lib/odbc/src/odbc_internal.hrl +++ b/lib/odbc/src/odbc_internal.hrl @@ -72,6 +72,7 @@ -define(USER_WCHAR, 12). -define(USER_WVARCHAR, 13). -define(USER_TIMESTAMP, 14). +-define(USER_WLONGVARCHAR, 15). %% INPUT & OUTPUT TYPE -define(IN, 0). |