X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9c136858af7a37b1ed7d5f036f8d6953f7c8d507..fd938b117780571129a03155ea0dc01fc73b7f23:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index 08c40f003d..6f0e8dce24 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -53,9 +53,6 @@ #include "wx/object.h" #include "wx/list.h" #include "wx/utils.h" - #if wxUSE_GUI - #include "wx/msgdlg.h" - #endif #include "wx/log.h" #endif #include "wx/filefn.h" @@ -3067,7 +3064,7 @@ bool wxDb::Catalog(const wxChar *userID, const wxString &fileName) GetData(7,SQL_C_SLONG, (UCHAR *)&precision, 0, &cb); GetData(8,SQL_C_SLONG, (UCHAR *)&length, 0, &cb); - outStr.Printf(wxT("%-32s %-32s (%04d)%-15s %9d %9d\n"), + outStr.Printf(wxT("%-32s %-32s (%04d)%-15s %9ld %9ld\n"), tblName, colName, sqlDataType, typeName, precision, length); if (fputs(outStr.c_str(), fp) == EOF) { @@ -3592,7 +3589,7 @@ bool wxDb::ModifyColumn(const wxString &tableName, const wxString &columnName, (Dbms() != dbmsMY_SQL || dataTypeName != "text")) { wxString s; - s.Printf(wxT("(%d)"), columnLength); + s.Printf(wxT("(%lu)"), columnLength); sqlStmt += s; }