diff options
author | coffeepots <coffeepots@users.noreply.github.com> | 2015-08-28 14:10:30 +0100 |
---|---|---|
committer | coffeepots <coffeepots@users.noreply.github.com> | 2015-08-28 14:10:30 +0100 |
commit | f089d7001052634cfee4d439ec052445c49d9ffc (patch) | |
tree | 465daff4b8a0160adc867803f9d9f987f7250ceb /lib/wrappers | |
parent | 370781b773739b2a580b661b5e444548dbf48411 (diff) | |
download | Nim-f089d7001052634cfee4d439ec052445c49d9ffc.tar.gz |
Add widestring versions of SQLPrepare and SQLExecDirect
SQLPrepareW and SQLExecDirectW are needed to use unicode as otherwise ODBC only recognises ansi codepages.
Diffstat (limited to 'lib/wrappers')
-rw-r--r-- | lib/wrappers/odbcsql.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wrappers/odbcsql.nim b/lib/wrappers/odbcsql.nim index 971861a6a..43ad80f76 100644 --- a/lib/wrappers/odbcsql.nim +++ b/lib/wrappers/odbcsql.nim @@ -680,8 +680,12 @@ proc SQLBrowseConnect*(hdbc: SqlHDBC, szConnStrIn: PSQLCHAR, dynlib: odbclib, importc.} proc SQLExecDirect*(StatementHandle: SqlHStmt, StatementText: PSQLCHAR, TextLength: TSqlInteger): TSqlSmallInt{.dynlib: odbclib, importc.} +proc SQLExecDirectW*(StatementHandle: SqlHStmt, StatementText: WideCString, + TextLength: TSqlInteger): TSqlSmallInt{.dynlib: odbclib, importc.} proc SQLPrepare*(StatementHandle: SqlHStmt, StatementText: PSQLCHAR, TextLength: TSqlInteger): TSqlSmallInt{.dynlib: odbclib, importc.} +proc SQLPrepareW*(StatementHandle: SqlHStmt, StatementText: WideCString, + TextLength: TSqlInteger): TSqlSmallInt{.dynlib: odbclib, importc.} proc SQLCloseCursor*(StatementHandle: SqlHStmt): TSqlSmallInt{.dynlib: odbclib, importc.} proc SQLExecute*(StatementHandle: SqlHStmt): TSqlSmallInt{.dynlib: odbclib, importc.} |