mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-21 19:27:09 +01:00
Update libraries and make it build on windows.
Still gets some warnings because compilers have changed. But should work.
This commit is contained in:
1 parent
520a5eacc5
commit
f2b7499f85
3038 files changed
+251668
-273857
No files matched your search
+4
-3
@@ -35,7 +35,7 @@ Preparator::Preparator(const StatementHandle& rStmt,
|
||||
{
|
||||
SQLCHAR* pStr = (SQLCHAR*) statement.c_str();
|
||||
if (Utility::isError(Poco::Data::ODBC::SQLPrepare(_rStmt, pStr, (SQLINTEGER) statement.length())))
|
||||
throw StatementException(_rStmt);
|
||||
throw StatementException(_rStmt, "ODBC::Preparator():SQLPrepare()");
|
||||
}
|
||||
|
||||
|
||||
@@ -158,7 +158,8 @@ std::size_t Preparator::maxDataSize(std::size_t pos) const
|
||||
|
||||
// accomodate for terminating zero (non-bulk only!)
|
||||
MetaColumn::ColumnDataType type = mc.type();
|
||||
if (sz && !isBulk() && ((ODBCMetaColumn::FDT_WSTRING == type) || (ODBCMetaColumn::FDT_STRING == type))) ++sz;
|
||||
if (sz && !isBulk() && ((ODBCMetaColumn::FDT_WSTRING == type) || (ODBCMetaColumn::FDT_STRING == type)))
|
||||
++sz;
|
||||
}
|
||||
catch (StatementException&) { }
|
||||
|
||||
@@ -201,7 +202,7 @@ void Preparator::prepareBoolArray(std::size_t pos, SQLSMALLINT valueType, std::s
|
||||
(SQLINTEGER) sizeof(bool),
|
||||
&_lenLengths[pos][0])))
|
||||
{
|
||||
throw StatementException(_rStmt, "SQLBindCol()");
|
||||
throw StatementException(_rStmt, "ODBC::Preparator::prepareBoolArray():SQLBindCol()");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user