mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-05 04:58:05 +00:00
Fix Visual Studio warnings at level /W4 (#2312)
* SharePtr fix for gcc 7.2 * Fix for Poco issue #2285 * Add missing fail() to sqlite test * Fix for testIllegalFilePath * Update SQLiteTest.cpp * fixexes for Visual Studio and /W4 switch * Fixed warnings for Foundation module * Fixed warnings for JSON module * Fixed warnings for XML module * Fixed warnings for NET module * Fix unfixable warning in VarHolder.h * Fix Typo: * Fixes for Net * Fixes for Crypto * Fixes for NetSSL * Fixes for Zip * Fixes for PDF * Fixes for SQLite * Fixes for SQLite * Fixes for SQL * Fixes for MongoDB * Fixes for Redis * Fixes for CppParser * Fixes for CppUnit * Fixes for PageCompiler * Fixes for PostgreSQL * Fixes for MySQL * Fixes for SevenZip * Last Warnings * Fixes for ODBC * fix std::type_info include
This commit is contained in:
committed by
Aleksandar Fabijanic
parent
301b681fa8
commit
42ef846651
@@ -26,7 +26,7 @@ StatementExecutor::StatementExecutor(MYSQL* mysql)
|
||||
: _pSessionHandle(mysql)
|
||||
, _affectedRowCount(0)
|
||||
{
|
||||
if (!(_pHandle = mysql_stmt_init(mysql)))
|
||||
if ((_pHandle = mysql_stmt_init(mysql)) == 0)
|
||||
throw StatementException("mysql_stmt_init error");
|
||||
|
||||
_state = STMT_INITED;
|
||||
@@ -107,7 +107,7 @@ void StatementExecutor::execute()
|
||||
|
||||
my_ulonglong affectedRows = mysql_affected_rows(_pSessionHandle);
|
||||
if (affectedRows != ((my_ulonglong) - 1))
|
||||
_affectedRowCount = static_cast<std::size_t>(affectedRows); //Was really a DELETE, UPDATE or INSERT statement
|
||||
_affectedRowCount = static_cast<int>(affectedRows); //Was really a DELETE, UPDATE or INSERT statement
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user