SqlSchema: CLOB/BLOB width now set as INT_MAX/2 (not 0)

git-svn-id: svn://ultimatepp.org/upp/trunk@7582 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-08-11 09:51:02 +00:00
parent e39062e81d
commit 084ce79f20
4 changed files with 16 additions and 16 deletions

View file

@ -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")

View file

@ -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 ";") \

View file

@ -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 ";") \

View file

@ -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")