]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/browsedb.cpp
wxUSE_LOG (Smartphone) fix.
[wxWidgets.git] / demos / dbbrowse / browsedb.cpp
index 2efb6697664f190baa28bdd6497e3ca294efbe0a..813beeb8dd3ea503cb918149b74c002abb259922 100644 (file)
@@ -376,7 +376,7 @@ bool BrowserDB::OnSelect(wxString tb_Name, int Quiet)
         return false;
     }
     //---------------------------------------------------------------------------------------
-    // SetColDefs ( 0,"NAME",DB_DATA_TYPE_VARCHAR,Name,SQL_C_CHAR,sizeof(Name),true,true);  // Primary index
+    // SetColDefs ( 0, "NAME", DB_DATA_TYPE_VARCHAR, Name, SQL_C_WXCHAR, sizeof(Name), true, true);  // Primary index
     //---------------------------------------------------------------------------------------
     if (!Quiet)
     {
@@ -431,7 +431,7 @@ wxDbColInf* BrowserDB::OnGetColumns(wxChar *tableName, UWORD numCols, int WXUNUS
         (cl_BrowserDB+i)->pColFor->Format(1,
                                         (cl_BrowserDB+i)->dbDataType,
                                         (cl_BrowserDB+i)->sqlDataType,
-                                        (cl_BrowserDB+i)->columnSize,
+                                        (cl_BrowserDB+i)->columnLength,
                                         (cl_BrowserDB+i)->decimalDigits);
     }
     return cl_BrowserDB;