[SQL-CVS] r4411 - SQLObject/branches/1.1/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2011-06-20 09:19:40
|
Author: phd Date: Mon Jun 20 03:19:30 2011 New Revision: 4411 Log: With SQLiteConnection.text_factory there is no need now to parse declarations, so I can remove the space between CHAR and (. Modified: SQLObject/branches/1.1/sqlobject/col.py Modified: SQLObject/branches/1.1/sqlobject/col.py ============================================================================== --- SQLObject/branches/1.1/sqlobject/col.py Wed Jun 15 07:01:27 2011 (r4410) +++ SQLObject/branches/1.1/sqlobject/col.py Mon Jun 20 03:19:30 2011 (r4411) @@ -458,7 +458,7 @@ def _sqliteType(self): self._check_case_sensitive("SQLite") - return super(SOStringLikeCol, self)._sqliteType().replace("CHAR(", "CHAR (") + return super(SOStringLikeCol, self)._sqliteType() def _sybaseType(self): self._check_case_sensitive("SYBASE") @@ -974,8 +974,7 @@ checkConstraint = "CHECK (%s in (%s))" % (self.dbName, enumValues) return "VARCHAR(%i) %s" % (length, checkConstraint) - def _sqliteType(self): - return self._postgresType().replace("CHAR(", "CHAR (") + _sqliteType = _postgresType def _sybaseType(self): return self._postgresType() |