Commit e1fcbdba authored by Philippe Pebay's avatar Philippe Pebay
Browse files

BUG: With MySQL, size is not required for TEXT columns.

parent e19c83db
......@@ -31,7 +31,7 @@
#define VTK_MYSQL_DEFAULT_PORT 3306
vtkCxxRevisionMacro(vtkMySQLDatabase, "1.15");
vtkCxxRevisionMacro(vtkMySQLDatabase, "1.16");
vtkStandardNewMacro(vtkMySQLDatabase);
// ----------------------------------------------------------------------
......@@ -349,7 +349,7 @@ vtkStdString vtkMySQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* sch
colTypeStr = "VARCHAR";
break;
case vtkSQLDatabaseSchema::TEXT:
colTypeStr = "VARCHAR";
colTypeStr = "TEXT";
break;
case vtkSQLDatabaseSchema::REAL:
colTypeStr = "FLOAT";
......@@ -403,7 +403,7 @@ vtkStdString vtkMySQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* sch
colSizeType = -1;
break;
case vtkSQLDatabaseSchema::TEXT:
colSizeType = -1;
colSizeType = 1;
break;
case vtkSQLDatabaseSchema::REAL:
colSizeType = 1;
......
......@@ -38,7 +38,7 @@ PURPOSE. See the above copyright notice for more information.
#include <vtksys/SystemTools.hxx>
vtkCxxRevisionMacro(vtkSQLDatabase, "1.28");
vtkCxxRevisionMacro(vtkSQLDatabase, "1.29");
// ----------------------------------------------------------------------
vtkSQLDatabase::vtkSQLDatabase()
......@@ -146,7 +146,7 @@ vtkStdString vtkSQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* schem
colSizeType = 1;
break;
case vtkSQLDatabaseSchema::BLOB:
colSizeType = 0;
colSizeType = 1;
break;
case vtkSQLDatabaseSchema::TIME:
colSizeType = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment