From 1a18acb7623a729db87b1bc69116bb97cb152041 Mon Sep 17 00:00:00 2001 From: zYne Date: Mon, 30 Jul 2007 19:13:05 +0000 Subject: [PATCH] --- lib/Doctrine/Table.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Table.php b/lib/Doctrine/Table.php index afa8211a6..85eb51230 100644 --- a/lib/Doctrine/Table.php +++ b/lib/Doctrine/Table.php @@ -700,7 +700,13 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable } - if ($length == null) { + if ($length == null && + $type === 'string' || + $type === 'clob' || + $type === 'integer' || + $type === 'blob' || + $type === 'gzip') { + $length = 2147483647; }