]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
Improved selection mode handling in wxGrid::SelectBlock
[wxWidgets.git] / src / common / db.cpp
index 50de73347b613d8121229cbbae97c0f5b490aa04..12f614d4c5a039207e866e535cdc9098152113bd 100644 (file)
@@ -61,6 +61,7 @@
         #include "wx/list.h"
         #include "wx/utils.h"
         #include "wx/msgdlg.h"
+        #include "wx/log.h"
     #endif
     #include "wx/filefn.h"
     #include "wx/wxchar.h"
@@ -897,7 +898,7 @@ void wxDB::Close(void)
         {
             s.sprintf("(%-20s)     tableID:[%6lu]     pDb:[%p]", tiu->tableName,tiu->tableID,tiu->pDb);
             s2.sprintf("Orphaned found using pDb:[%p]",this);
-            wxLogDebug (s,s2);
+            wxLogDebug (s.c_str(),s2.c_str());
         }
         pNode = pNode->Next();
     }
@@ -1681,9 +1682,8 @@ wxColInf *wxDB::GetColumns(char *tableName[], const char *userID)
                         {
                             if (colInf[colNo].columnSize < 1)
                             {
-                               // Apparently mySQL and Postgres (or their ODBC drivers) do not 
-                               // return a columnSize, so set columnSize = bufferLength
-                               // if no column size was returned
+                               // IODBC does not return a correct columnSize, so we set
+                               // columnSize = bufferLength if no column size was returned
                                colInf[colNo].columnSize = colInf[colNo].bufferLength;
                             }
                             colInf[colNo].dbDataType = DB_DATA_TYPE_VARCHAR;
@@ -1855,9 +1855,8 @@ wxColInf *wxDB::GetColumns(char *tableName, int *numCols, const char *userID)
                     {
                         if (colInf[colNo].columnSize < 1)
                         {
-                             // Apparently mySQL and Postgres (or their ODBC drivers) do not 
-                             // return a columnSize, so set columnSize = bufferLength
-                             // if no column size was returned
+                             // IODBC does not return a correct columnSize, so we set
+                             // columnSize = bufferLength if no column size was returned
                              colInf[colNo].columnSize = colInf[colNo].bufferLength;
                         }
                         colInf[colNo].dbDataType = DB_DATA_TYPE_VARCHAR;