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:
parent
ad115b2d65
commit
bebb64f0e2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user