[SQL-CVS] r2193 - SQLObject/branches/0.8/sqlobject/firebird
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2007-01-10 14:31:11
|
Author: phd Date: 2007-01-10 07:30:56 -0700 (Wed, 10 Jan 2007) New Revision: 2193 Modified: SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py Log: Fixed a bug in FirebirdConnection caused by column names having trailing spaces (patch 1621211). Modified: SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py =================================================================== --- SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:30:41 UTC (rev 2192) +++ SQLObject/branches/0.8/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:30:56 UTC (rev 2193) @@ -195,8 +195,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)) |