Commit 77ecc025 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Use LONGBLOB column type for object values.

BLOB is 2^16 bytes
MEDIUMBLOB is 2^24 bytes
LONGBLOB is 2^32 bytes

Choose LONGBLOB to store bigger objects.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1970 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 4ba6ca5e
......@@ -159,7 +159,7 @@ class MySQLDatabaseManager(DatabaseManager):
serial BIGINT UNSIGNED NOT NULL,
compression TINYINT UNSIGNED NOT NULL,
checksum INT UNSIGNED NOT NULL,
value MEDIUMBLOB NOT NULL,
value LONGBLOB NOT NULL,
PRIMARY KEY (oid, serial)
) ENGINE = InnoDB""")
......@@ -179,7 +179,7 @@ class MySQLDatabaseManager(DatabaseManager):
serial BIGINT UNSIGNED NOT NULL,
compression TINYINT UNSIGNED NOT NULL,
checksum INT UNSIGNED NOT NULL,
value MEDIUMBLOB NOT NULL
value LONGBLOB NOT NULL
) ENGINE = InnoDB""")
def getConfiguration(self, key):
......
Markdown is supported
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