Author: reinhard
Date: 2005-06-14 13:54:00 -0500 (Tue, 14 Jun 2005)
New Revision: 7597
Modified:
trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
Log:
Quote all field names in the SELECT statement. This fixes weird effects when a
field name contains, for example, a comma.
Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-06-14 13:53:27 UTC (rev 7596)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
2005-06-14 18:54:00 UTC (rev 7597)
@@ -85,7 +85,7 @@
sortorder, distinct):
params = {}
- what = string.join (fieldnames, ', ')
+ what = '"' + string.join (fieldnames, '", "') + '"'
if distinct:
what = 'DISTINCT ' + what
where = condition.asSQL (params)
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue