Author: phd
Date: 2008-03-03 06:27:35 -0700 (Mon, 03 Mar 2008)
New Revision: 3279
Modified:
SQLObject/branches/0.10/docs/News.txt
SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py
Log:
Recognize POINT data type as string in PostgresConnection.columnsFromSchema().
Modified: SQLObject/branches/0.10/docs/News.txt
===================================================================
--- SQLObject/branches/0.10/docs/News.txt 2008-03-03 13:26:43 UTC (rev 3278)
+++ SQLObject/branches/0.10/docs/News.txt 2008-03-03 13:27:35 UTC (rev 3279)
@@ -82,6 +82,8 @@
* Fixed a bug with no default when defaultSQL is defined for the column.
+* Recognize POINT data type as string in PostgresConnection.columnsFromSchema().
+
SQLObject 0.9.3
===============
Modified: SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py
===================================================================
--- SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2008-03-03 13:26:43 UTC (rev 3278)
+++ SQLObject/branches/0.10/sqlobject/postgres/pgconnection.py 2008-03-03 13:27:35 UTC (rev 3279)
@@ -256,7 +256,9 @@
return results
def guessClass(self, t):
- if t.count('int'):
+ if t.count('point'): # poINT before INT
+ return col.StringCol, {}
+ elif t.count('int'):
return col.IntCol, {}
elif t.count('varying') or t.count('varchar'):
if '(' in t:
|