Thread: [SQL-CVS] r2194 - home/phd/SQLObject/paramstyles/sqlobject/firebird
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2007-01-10 14:32:09
|
Author: phd Date: 2007-01-10 07:32:03 -0700 (Wed, 10 Jan 2007) New Revision: 2194 Modified: home/phd/SQLObject/paramstyles/sqlobject/firebird/firebirdconnection.py Log: Merged patches from the revisions 2189:2193 from the trunk Modified: home/phd/SQLObject/paramstyles/sqlobject/firebird/firebirdconnection.py =================================================================== --- home/phd/SQLObject/paramstyles/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:30:56 UTC (rev 2193) +++ home/phd/SQLObject/paramstyles/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:32:03 UTC (rev 2194) @@ -193,8 +193,8 @@ if field == 'id': continue colClass, kw = self.guessClass(t, flength, fscale) - kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field) - kw['dbName'] = field + kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field).strip() + kw['dbName'] = field.strip() kw['notNone'] = not nullAllowed kw['default'] = thedefault results.append(colClass(**kw)) |