#include "wx/defs.h"
-#if USE_ODBC
+#if wxUSE_ODBC
+
+#ifdef _MSC_VER
+ #pragma warning(disable:4706) // assignment within conditional expression
+#endif // VC++
#ifndef WX_PRECOMP
#include "wx/utils.h"
curcol = cols.Append(name, col1);
col1->SetName(name);
col1->SetType(type);
- col1->SetNullable(nullable);
+ col1->SetNullable((nullable != 0));
wxQueryField *field1 = new wxQueryField;
fetch = fetchbuf.Append(field1);
field1->SetType(type);
field1->SetSize(len);
- SQLBindCol(hStmt, i+1, SQL_C_BINARY, field1->GetData(), field1->GetSize(), &trash);
+ SQLBindCol(hStmt, i+1, SQL_C_BINARY, (unsigned char*)field1->GetData(), field1->GetSize(), &trash);
}
switch (type) {
return dirty;
}
-#endif // USE_ODBC
+#ifdef _MSC_VER
+ #pragma warning(default:4706) // assignment within conditional expression
+#endif // VC++
+
+#endif // wxUSE_ODBC