[mapserver-commits] r9050 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu May 28 13:58:26 EDT 2009
Author: pramsey
Date: 2009-05-28 13:58:26 -0400 (Thu, 28 May 2009)
New Revision: 9050
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mappostgresql.c
Log:
Support non-numeric join criteria (#2006)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2009-05-28 17:58:22 UTC (rev 9049)
+++ trunk/mapserver/HISTORY.TXT 2009-05-28 17:58:26 UTC (rev 9050)
@@ -14,6 +14,8 @@
Current Version (SVN trunk):
----------------------------
+- Support non-numeric join criteria (#2006)
+
- Ensure there's enough room in the SQL to hold a long (#1284)
- Fix filter error in multi-clause filters (#2937)
Modified: trunk/mapserver/mappostgresql.c
===================================================================
--- trunk/mapserver/mappostgresql.c 2009-05-28 17:58:22 UTC (rev 9049)
+++ trunk/mapserver/mappostgresql.c 2009-05-28 17:58:26 UTC (rev 9050)
@@ -1,5 +1,5 @@
/******************************************************************************
- * $Id:$
+ * $Id$
*
* Project: MapServer
* Purpose: Postgres CONNECTIONTYPE support.
@@ -328,7 +328,7 @@
"msPOSTGRESQLJoinNext()");
return MS_FAILURE;
}
- sprintf(sql, "SELECT %s FROM %s WHERE %s = %s", columns, join->table, join->to, joininfo->from_value);
+ sprintf(sql, "SELECT %s FROM %s WHERE %s = '%s'", columns, join->table, join->to, joininfo->from_value);
if(joininfo->layer_debug) {
msDebug("msPOSTGRESQLJoinNext(): executing %s.\n", sql);
}
More information about the mapserver-commits
mailing list