GeoSQL::sql() only supports %g format specifier, which results in many GeoSQLMySQL/GeoSQLPostGIS API functions not working; e.g. GeoSQLMySQL::point() calls sql() with "Point(%f, %f)", which returns invalid SQL, because %f is not supported by GeoSQL::sql().

CommentFileSizeAuthor
#1 geo-883032.patch2.85 KBahtih

Comments

ahtih’s picture

Status: Active » Needs review
StatusFileSize
new2.85 KB

Here is a patch that adds %b, %s, %d, %f support to sql(), making it now support all %-format specifiers used in includes/handlers/*.inc files. This makes $geo->point() etc functions work.