mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
e39062e81d
commit
084ce79f20
4 changed files with 16 additions and 16 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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 ";") \
|
||||
|
|
|
|||
|
|
@ -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 ";") \
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue