diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-17 12:39:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-17 12:39:22 +0200 |
commit | dca9904e6f47acf3a9629f59012ab84b9348aea8 (patch) | |
tree | 18895f3303ba8ee9cfb1c9d5205956a66456bd99 /odb/mssql/error.cxx | |
parent | 212c4ac5e23867bf8e1c7d29b70c7a65b43be2eb (diff) |
Use ANSI versions of ODBC functions, get rid of warnings
We have to use ANSI versions explicitly because VC++ build defaults
to Unicode.
Diffstat (limited to 'odb/mssql/error.cxx')
-rw-r--r-- | odb/mssql/error.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/odb/mssql/error.cxx b/odb/mssql/error.cxx index 1a0b4cc..1746810 100644 --- a/odb/mssql/error.cxx +++ b/odb/mssql/error.cxx @@ -78,14 +78,14 @@ namespace odb for (SQLSMALLINT i (1);; ++i) { - r = SQLGetDiagRec (htype, - h, - i, - (SQLCHAR*) sqlstate, - &native_code, - 0, - 0, - &msg_size); + r = SQLGetDiagRecA (htype, + h, + i, + (SQLCHAR*) sqlstate, + &native_code, + 0, + 0, + &msg_size); if (r == SQL_NO_DATA) break; @@ -167,14 +167,14 @@ namespace odb for (SQLSMALLINT i (1);; ++i) { - r = SQLGetDiagRec (htype, - h, - i, - (SQLCHAR*) sqlstate, - &native_code, - (SQLCHAR*) msg, - sizeof (msg), - &msg_size); + r = SQLGetDiagRecA (htype, + h, + i, + (SQLCHAR*) sqlstate, + &native_code, + (SQLCHAR*) msg, + sizeof (msg), + &msg_size); if (r == SQL_NO_DATA) break; |