Author: phd
Date: 2007-01-10 07:30:41 -0700 (Wed, 10 Jan 2007)
New Revision: 2192
Modified:
SQLObject/branches/0.7-bugfix/docs/News.txt
SQLObject/branches/0.7-bugfix/sqlobject/firebird/firebirdconnection.py
Log:
Fixed a bug in FirebirdConnection caused by column names having trailing spaces (patch 1621211).
Modified: SQLObject/branches/0.7-bugfix/docs/News.txt
===================================================================
--- SQLObject/branches/0.7-bugfix/docs/News.txt 2007-01-10 14:30:17 UTC (rev 2191)
+++ SQLObject/branches/0.7-bugfix/docs/News.txt 2007-01-10 14:30:41 UTC (rev 2192)
@@ -19,6 +19,9 @@
* Fixed a bug in MSSQLConnection caused by column names being unicode.
+* Fixed a bug in FirebirdConnection caused by column names having trailing
+ spaces.
+
SQLObject 0.7.2
===============
Modified: SQLObject/branches/0.7-bugfix/sqlobject/firebird/firebirdconnection.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:30:17 UTC (rev 2191)
+++ SQLObject/branches/0.7-bugfix/sqlobject/firebird/firebirdconnection.py 2007-01-10 14:30:41 UTC (rev 2192)
@@ -190,8 +190,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))
|