From ac98675021881fc82489f7490b2b38036c5ca50a Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 9 Jun 2018 19:57:02 +0300 Subject: Get rid of VC 'conversion from... to... of greater size' warnings --- odb/mssql/connection.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +#include //intptr_t #include #include @@ -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; -- cgit v1.1