Update of /cvsroot/sqlobject/SQLObject/SQLObject
In directory sc8-pr-cvs1:/tmp/cvs-serv26668/SQLObject
Modified Files:
Col.py
Log Message:
added minor change to account for the position of NOT NULL when creating an SOEnumCol (firebird only).
Index: Col.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/SQLObject/Col.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** Col.py 27 Sep 2003 22:56:41 -0000 1.29
--- Col.py 6 Oct 2003 00:37:13 -0000 1.30
***************
*** 196,200 ****
def firebirdCreateSQL(self):
! return ' '.join([self.dbName, self._firebirdType()] + self._extraSQL())
class Col(object):
--- 196,206 ----
def firebirdCreateSQL(self):
! # Ian Sparks pointed out that fb is picky about the order
! # of the NOT NULL clause in a create statement. So, we handle
! # them differently for Enum columns.
! if not isinstance(self, SOEnumCol):
! return ' '.join([self.dbName, self._firebirdType()] + self._extraSQL())
! else:
! return ' '.join([self.dbName] + self._extraSQL() + [self._firebirdType()])
class Col(object):
|