Author: phd
Date: 2007-01-10 06:36:30 -0700 (Wed, 10 Jan 2007)
New Revision: 2186
Modified:
SQLObject/branches/0.7-bugfix/docs/News.txt
SQLObject/branches/0.7-bugfix/sqlobject/mssql/mssqlconnection.py
Log:
Fixed a bug in MSSQLConnection caused by column names being unicode (patch 1613369).
Modified: SQLObject/branches/0.7-bugfix/docs/News.txt
===================================================================
--- SQLObject/branches/0.7-bugfix/docs/News.txt 2007-01-10 13:36:15 UTC (rev 2185)
+++ SQLObject/branches/0.7-bugfix/docs/News.txt 2007-01-10 13:36:30 UTC (rev 2186)
@@ -17,6 +17,8 @@
* Psycopg1 requires port to be a string; psycopg2 requires port to be an int.
+* Fixed a bug in MSSQLConnection caused by column names being unicode.
+
SQLObject 0.7.2
===============
Modified: SQLObject/branches/0.7-bugfix/sqlobject/mssql/mssqlconnection.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/mssql/mssqlconnection.py 2007-01-10 13:36:15 UTC (rev 2185)
+++ SQLObject/branches/0.7-bugfix/sqlobject/mssql/mssqlconnection.py 2007-01-10 13:36:30 UTC (rev 2186)
@@ -216,8 +216,8 @@
continue
# precision is needed for decimal columns
colClass, kw = self.guessClass(t, size, precision, scale)
- kw['name'] = soClass.sqlmeta.style.dbColumnToPythonAttr(field)
- kw['dbName'] = field
+ kw['name'] = str(soClass.sqlmeta.style.dbColumnToPythonAttr(field))
+ kw['dbName'] = str(field)
kw['notNone'] = not nullAllowed
if (defaultText):
# Strip ( and )
|