diff --git a/uppsrc/MySql/MySqlSchema.h b/uppsrc/MySql/MySqlSchema.h index e67744058..e688d9629 100644 --- a/uppsrc/MySql/MySqlSchema.h +++ b/uppsrc/MySql/MySqlSchema.h @@ -33,11 +33,11 @@ #define STRING_(x, n) COLUMN_(MySqlTextType(n), String, x, n, 0) #define STRING_ARRAY_(x, n, items) COLUMN_ARRAY_(MySqlTextType(n), String, x, n, 0, items) -#define BLOB(x) COLUMN("longblob", String, x, 0, 0) -#define BLOB_(x) COLUMN_("longblob", String, x, 0, 0) +#define BLOB(x) COLUMN("longblob", String, x, INT_MAX/2, 0) +#define BLOB_(x) COLUMN_("longblob", String, x, INT_MAX/2, 0) -#define CLOB(x) COLUMN("text", String, x, 0, 0) -#define CLOB_(x) COLUMN_("text", String, x, 0, 0) +#define CLOB(x) COLUMN("text", String, x, INT_MAX/2, 0) +#define CLOB_(x) COLUMN_("text", String, x, INT_MAX/2, 0) #ifndef PRIMARY_KEY #define PRIMARY_KEY INLINE_ATTRIBUTE("primary key") diff --git a/uppsrc/Oracle/OracleSchema.h b/uppsrc/Oracle/OracleSchema.h index 6fd6126ef..5c9b402fa 100644 --- a/uppsrc/Oracle/OracleSchema.h +++ b/uppsrc/Oracle/OracleSchema.h @@ -39,11 +39,11 @@ #define LONGRAW(x) COLUMN("long raw", String, x, 0, 0) #define LONGRAW_(x) COLUMN_("long raw", String, x, 0, 0) -#define BLOB(x) COLUMN("blob", String, x, 0, 0) -#define BLOB_(x) COLUMN_("blob", String, x, 0, 0) +#define BLOB(x) COLUMN("blob", String, x, INT_MAX/2, 0) +#define BLOB_(x) COLUMN_("blob", String, x, INT_MAX/2, 0) -#define CLOB(x) COLUMN("clob", String, x, 0, 0) -#define CLOB_(x) COLUMN_("clob", String, x, 0, 0) +#define CLOB(x) COLUMN("clob", String, x, INT_MAX/2, 0) +#define CLOB_(x) COLUMN_("clob", String, x, INT_MAX/2, 0) #define SEQUENCE(x) SCHEMA("create sequence " #x " start with 1;",\ "drop sequence " #x ";") \ diff --git a/uppsrc/PostgreSQL/PostgreSQLSchema.h b/uppsrc/PostgreSQL/PostgreSQLSchema.h index 1a973bc92..04c6e9c3e 100644 --- a/uppsrc/PostgreSQL/PostgreSQLSchema.h +++ b/uppsrc/PostgreSQL/PostgreSQLSchema.h @@ -59,11 +59,11 @@ #define LONGRAW(x) COLUMN("bytea", String, x, 0, 0) #define LONGRAW_(x) COLUMN_("bytea", String, x, 0, 0) -#define BLOB(x) COLUMN("bytea", String, x, 0, 0) -#define BLOB_(x) COLUMN_("bytea", String, x, 0, 0) +#define BLOB(x) COLUMN("bytea", String, x, INT_MAX/2, 0) +#define BLOB_(x) COLUMN_("bytea", String, x, INT_MAX/2, 0) -#define CLOB(x) COLUMN("text", String, x, 0, 0) -#define CLOB_(x) COLUMN_("text", String, x, 0, 0) +#define CLOB(x) COLUMN("text", String, x, INT_MAX/2, 0) +#define CLOB_(x) COLUMN_("text", String, x, INT_MAX/2, 0) #define SEQUENCE(x) SCHEMA("create sequence " #x " start with 1;",\ "drop sequence " #x ";") \ diff --git a/uppsrc/plugin/sqlite3/Sqlite3Schema.h b/uppsrc/plugin/sqlite3/Sqlite3Schema.h index 6032af63f..99f8826cb 100644 --- a/uppsrc/plugin/sqlite3/Sqlite3Schema.h +++ b/uppsrc/plugin/sqlite3/Sqlite3Schema.h @@ -33,11 +33,11 @@ #define BOOL_(x) COLUMN_("text", bool, x, 0, 0) #define BOOL_ARRAY_(x, items) COLUMN_ARRAY_("text", bool, x, 0, 0, items) -#define BLOB(x) COLUMN("blob", String, x, 0, 0) -#define BLOB_(x) COLUMN_("blob", String, x, 0, 0) +#define BLOB(x) COLUMN("blob", String, x, INT_MAX/2, 0) +#define BLOB_(x) COLUMN_("blob", String, x, INT_MAX/2, 0) -#define LONGRAW(x) COLUMN("blob", String, x, 0, 0) -#define LONGRAW_(x) COLUMN_("blob", String, x, 0, 0) +#define LONGRAW(x) COLUMN("blob", String, x, INT_MAX/2, 0) +#define LONGRAW_(x) COLUMN_("blob", String, x, INT_MAX/2, 0) #ifndef PRIMARY_KEY #define PRIMARY_KEY INLINE_ATTRIBUTE("primary key")