From dcb5ba4cac2bcfcc240bfdbc5384b452170f0140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Wed, 16 Aug 2017 03:58:34 +0100 Subject: [PATCH] Fixed st_asgeojson (#489) see https://groups.google.com/forum/#!topic/web2py/EixMPrPr9SY --- pydal/objects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydal/objects.py b/pydal/objects.py index f0d896a86..661782c28 100644 --- a/pydal/objects.py +++ b/pydal/objects.py @@ -1441,7 +1441,7 @@ def with_alias(self, alias): # GIS expressions def st_asgeojson(self, precision=15, options=0, version=1): - return Expression(self.db, self.db._adapter.ST_ASGEOJSON, self, + return Expression(self.db, self._dialect.st_asgeojson, self, dict(precision=precision, options=options, version=version), 'string')