remove bogus quote from ST_EstimatedExtent
SQL {#4032) via @urzhumskov
This commit is contained in:
parent
ab03726659
commit
1377ec9752
2 changed files with 2 additions and 2 deletions
|
@ -1117,7 +1117,7 @@ box2d<double> pgraster_datasource::envelope() const
|
||||||
throw mapnik::datasource_exception("Pgraster Plugin: " + s_error.str());
|
throw mapnik::datasource_exception("Pgraster Plugin: " + s_error.str());
|
||||||
}
|
}
|
||||||
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
|
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
|
||||||
<< " FROM (SELECT ST_EstimatedExtent('";
|
<< " FROM (SELECT ST_EstimatedExtent(";
|
||||||
|
|
||||||
if (! sch.empty())
|
if (! sch.empty())
|
||||||
{
|
{
|
||||||
|
|
|
@ -1019,7 +1019,7 @@ box2d<double> postgis_datasource::envelope() const
|
||||||
if (estimate_extent_)
|
if (estimate_extent_)
|
||||||
{
|
{
|
||||||
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
|
s << "SELECT ST_XMin(ext),ST_YMin(ext),ST_XMax(ext),ST_YMax(ext)"
|
||||||
<< " FROM (SELECT ST_EstimatedExtent('";
|
<< " FROM (SELECT ST_EstimatedExtent(";
|
||||||
if (!parsed_schema_.empty())
|
if (!parsed_schema_.empty())
|
||||||
{
|
{
|
||||||
s << literal(parsed_schema_) << ',';
|
s << literal(parsed_schema_) << ',';
|
||||||
|
|
Loading…
Reference in a new issue