X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/834f138686053e337f28b7d1c408e03c520cf8fd..c079af66c8fb4a2f68f33c6d3940b8ad8ec98f27:/src/common/dbtable.cpp diff --git a/src/common/dbtable.cpp b/src/common/dbtable.cpp index 87a90e01a0..e51af36535 100644 --- a/src/common/dbtable.cpp +++ b/src/common/dbtable.cpp @@ -1517,7 +1517,7 @@ bool wxDbTable::CreateTable(bool attemptDrop) // DB2 is limited to 18 characters for index names if (pDb->Dbms() == dbmsDB2) { - wxASSERT_MSG((tableName && wxStrlen(tableName) <= 13), wxT("DB2 table/index names must be no longer than 13 characters in length.\n\nTruncating table name to 13 characters.")); + wxASSERT_MSG(!tableName.empty() && tableName.length() <= 13, wxT("DB2 table/index names must be no longer than 13 characters in length.\n\nTruncating table name to 13 characters.")); sqlStmt += pDb->SQLTableName(tableName.substr(0, 13).c_str()); // sqlStmt += tableName.substr(0, 13); }