]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/db.cpp
*** empty log message ***
[wxWidgets.git] / src / common / db.cpp
index 45266aa4e770c8f62d8ce2c29234504240f3cb93..12f614d4c5a039207e866e535cdc9098152113bd 100644 (file)
@@ -1682,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;
@@ -1856,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;