X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0efe4a985555b3ef65ecfdf66202308ddac26284..0b7e6e7da208b6a95fb23cb50286a09dc90d96d2:/src/common/db.cpp diff --git a/src/common/db.cpp b/src/common/db.cpp index 45266aa4e7..12f614d4c5 100644 --- a/src/common/db.cpp +++ b/src/common/db.cpp @@ -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;