Fixed a misleading comment regarding MySQL and Postgres

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker 2000-02-29 11:27:43 +00:00
parent ad115b2d65
commit bebb64f0e2

View 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;