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:
@@ -1682,9 +1682,8 @@ wxColInf *wxDB::GetColumns(char *tableName[], const char *userID)
|
|||||||
{
|
{
|
||||||
if (colInf[colNo].columnSize < 1)
|
if (colInf[colNo].columnSize < 1)
|
||||||
{
|
{
|
||||||
// Apparently mySQL and Postgres (or their ODBC drivers) do not
|
// IODBC does not return a correct columnSize, so we set
|
||||||
// return a columnSize, so set columnSize = bufferLength
|
// columnSize = bufferLength if no column size was returned
|
||||||
// if no column size was returned
|
|
||||||
colInf[colNo].columnSize = colInf[colNo].bufferLength;
|
colInf[colNo].columnSize = colInf[colNo].bufferLength;
|
||||||
}
|
}
|
||||||
colInf[colNo].dbDataType = DB_DATA_TYPE_VARCHAR;
|
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)
|
if (colInf[colNo].columnSize < 1)
|
||||||
{
|
{
|
||||||
// Apparently mySQL and Postgres (or their ODBC drivers) do not
|
// IODBC does not return a correct columnSize, so we set
|
||||||
// return a columnSize, so set columnSize = bufferLength
|
// columnSize = bufferLength if no column size was returned
|
||||||
// if no column size was returned
|
|
||||||
colInf[colNo].columnSize = colInf[colNo].bufferLength;
|
colInf[colNo].columnSize = colInf[colNo].bufferLength;
|
||||||
}
|
}
|
||||||
colInf[colNo].dbDataType = DB_DATA_TYPE_VARCHAR;
|
colInf[colNo].dbDataType = DB_DATA_TYPE_VARCHAR;
|
||||||
|
Reference in New Issue
Block a user