Fix update resize field with size == None

This commit is contained in:
Cédric Krier committed 2008-04-25 13:09:41 +02:00
1 parent 200491541b
commit 3e241403c6
1 file changed
+2 -1
+2 -1
View File
@@ -561,7 +561,8 @@ class ORM(object):
(k, self._table, f_pg_type, f_obj_type,))
if f_pg_type == 'varchar' \
and field._type == 'char' \
and f_pg_size != field.size:
and (f_pg_size != field.size \
and not (f_pg_size == -5 and field.size == None)):
# columns with the name 'type' cannot be changed
# for an unknown reason?!
if k != 'type':