diff options
author | Ingela Anderton Andin <[email protected]> | 2011-06-28 14:52:32 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2011-06-28 14:52:32 +0200 |
commit | 80afe2b50aa5479e1e53dd7ba01e540df6351781 (patch) | |
tree | 18579d791b5cc221f4118cf9c8080a4ab352b7ab /lib/odbc/src | |
parent | 1049243404cc52cad5ce1f1d2d37383a2ca06160 (diff) | |
parent | 8cc6a0498ae74d6e2bb3132ff2f420c2e0401fad (diff) | |
download | otp-80afe2b50aa5479e1e53dd7ba01e540df6351781.tar.gz otp-80afe2b50aa5479e1e53dd7ba01e540df6351781.tar.bz2 otp-80afe2b50aa5479e1e53dd7ba01e540df6351781.zip |
Merge branch 'hs/odbc/sql_wlongvarchar_support' into dev
* hs/odbc/sql_wlongvarchar_support:
Rewrote test case so that it works
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). |