]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed another place where wxString was used as bool
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Apr 2007 13:13:10 +0000 (13:13 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Apr 2007 13:13:10 +0000 (13:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dbtable.cpp

index 87a90e01a04275e05f1981a0da9f21e1087bd3aa..e51af36535a198965b3ce1d7c5720c061ca78d24 100644 (file)
@@ -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);
                 }