[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5848 - trunk/gnue-common/src/schema/scripter/processors
From: |
btami |
Subject: |
r5848 - trunk/gnue-common/src/schema/scripter/processors |
Date: |
Mon, 31 May 2004 12:30:37 -0500 (CDT) |
Author: btami
Date: 2004-05-31 12:30:36 -0500 (Mon, 31 May 2004)
New Revision: 5848
Modified:
trunk/gnue-common/src/schema/scripter/processors/interbase.py
Log:
fixed Firebird's BLOB issues in WHERE clause
Modified: trunk/gnue-common/src/schema/scripter/processors/interbase.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/processors/interbase.py
2004-05-31 16:19:34 UTC (rev 5847)
+++ trunk/gnue-common/src/schema/scripter/processors/interbase.py
2004-05-31 17:30:36 UTC (rev 5848)
@@ -116,12 +116,13 @@
def string (self, gsField):
"""
- If the length of the string is missing or less than 2000 'varchar' is
+ If the length of the string is missing or less than 32000 'varchar' is
returned, otherwise 'blob'.
"""
- if hasattr (gsField, "length") and gsField.length <= 2000:
+ if hasattr (gsField, "length") and gsField.length <= 32000:
return "varchar (%s)" % gsField.length
-
+ elif not hasattr (gsField, "length"):
+ return "varchar (32000)"
else:
return "blob"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5848 - trunk/gnue-common/src/schema/scripter/processors,
btami <=