X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/46dc76ba3573649a9ed7c7aff6dc677f533eee11..f5e27805de786dbb3976782ba2a3365c27256031:/src/common/odbc.cpp diff --git a/src/common/odbc.cpp b/src/common/odbc.cpp index 79d1f9b9df..84b145c36f 100644 --- a/src/common/odbc.cpp +++ b/src/common/odbc.cpp @@ -23,7 +23,7 @@ #include "wx/defs.h" -#if USE_ODBC +#if wxUSE_ODBC #ifndef WX_PRECOMP #include "wx/utils.h" @@ -607,14 +607,14 @@ bool wxRecordSet::GetResultSet(void) 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) { @@ -1827,4 +1827,4 @@ bool wxQueryField::IsDirty(void) { return dirty; } -#endif // USE_ODBC +#endif // wxUSE_ODBC