Commit 561f5247 authored by Philippe Pebay's avatar Philippe Pebay
Browse files

BUG: use column size when there is indeed a value for that size.

parent 396c3ddb
......@@ -31,7 +31,7 @@
#define VTK_MYSQL_DEFAULT_PORT 3306
vtkCxxRevisionMacro(vtkMySQLDatabase, "1.16");
vtkCxxRevisionMacro(vtkMySQLDatabase, "1.17");
vtkStandardNewMacro(vtkMySQLDatabase);
// ----------------------------------------------------------------------
......@@ -439,7 +439,7 @@ vtkStdString vtkMySQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* sch
// At this point, we have either a valid size if required, or a possibly null valid size
// if not required. Thus, skip sizing in the latter case.
if ( colSize < 0 )
if ( colSize > 0 )
{
queryStr += "(";
queryStr += colSize;
......
......@@ -31,7 +31,7 @@ PURPOSE. See the above copyright notice for more information.
#include <pqxx/pqxx>
vtkStandardNewMacro(vtkPostgreSQLDatabase);
vtkCxxRevisionMacro(vtkPostgreSQLDatabase, "1.15");
vtkCxxRevisionMacro(vtkPostgreSQLDatabase, "1.16");
// ----------------------------------------------------------------------
vtkPostgreSQLDatabase::vtkPostgreSQLDatabase()
......@@ -204,7 +204,7 @@ vtkStdString vtkPostgreSQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema
// At this point, we have either a valid size if required, or a possibly null valid size
// if not required. Thus, skip sizing in the latter case.
if ( colSize < 0 )
if ( colSize > 0 )
{
queryStr += "(";
queryStr += colSize;
......
......@@ -38,7 +38,7 @@ PURPOSE. See the above copyright notice for more information.
#include <vtksys/SystemTools.hxx>
vtkCxxRevisionMacro(vtkSQLDatabase, "1.29");
vtkCxxRevisionMacro(vtkSQLDatabase, "1.30");
// ----------------------------------------------------------------------
vtkSQLDatabase::vtkSQLDatabase()
......@@ -173,7 +173,7 @@ vtkStdString vtkSQLDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* schem
// At this point, we have either a valid size if required, or a possibly null valid size
// if not required. Thus, skip sizing in the latter case.
if ( colSize < 0 )
if ( colSize > 0 )
{
queryStr += "(";
queryStr += colSize;
......
......@@ -29,7 +29,7 @@
#include <vtksqlite/vtk_sqlite3.h>
vtkStandardNewMacro(vtkSQLiteDatabase);
vtkCxxRevisionMacro(vtkSQLiteDatabase, "1.11");
vtkCxxRevisionMacro(vtkSQLiteDatabase, "1.12");
// ----------------------------------------------------------------------
vtkSQLiteDatabase::vtkSQLiteDatabase()
......@@ -195,7 +195,7 @@ vtkStdString vtkSQLiteDatabase::GetColumnSpecification( vtkSQLDatabaseSchema* sc
// At this point, we have either a valid size if required, or a possibly null valid size
// if not required. Thus, skip sizing in the latter case.
if ( colSize < 0 )
if ( colSize > 0 )
{
queryStr += "(";
queryStr += colSize;
......
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