diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-09 19:57:02 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-10 12:46:33 +0300 |
commit | ac98675021881fc82489f7490b2b38036c5ca50a (patch) | |
tree | 370a0dcdb162cf47c27cf7aa270329059cbb213a | |
parent | 5263a802a70b920fbdc282041a52b755e9beeffd (diff) |
Get rid of VC 'conversion from... to... of greater size' warnings
-rw-r--r-- | odb/mssql/connection.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mssql/connection.cxx b/odb/mssql/connection.cxx index 9b90e13..44438ae 100644 --- a/odb/mssql/connection.cxx +++ b/odb/mssql/connection.cxx @@ -3,6 +3,7 @@ // license : ODB NCUEL; see accompanying LICENSE file #include <string> +#include <cstdint> //intptr_t #include <odb/mssql/mssql.hxx> #include <odb/mssql/database.hxx> @@ -18,7 +19,7 @@ namespace odb { namespace mssql { - static const long transaction_isolation_map[] = + static const intptr_t transaction_isolation_map[] = { SQL_TXN_READ_UNCOMMITTED, SQL_TXN_READ_COMMITTED, @@ -90,6 +91,7 @@ namespace odb SQL_ATTR_TXN_ISOLATION, (SQLPOINTER) transaction_isolation_map[ti], 0); + if (!SQL_SUCCEEDED (r)) translate_error (r, handle_, SQL_HANDLE_DBC); break; |