Dont write FILTER keyword if the SQL filter doesn't exists

git-svn-id: http://svn.osgeo.org/qgis/trunk@8302 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2008-03-30 23:18:40 +00:00
parent d62f213fbb
commit d3aaacc294

View File

@ -308,7 +308,8 @@ class Qgis2Map:
self.outFile.write(" CONNECTIONTYPE postgis\n")
self.outFile.write(" CONNECTION '" + pgConnString + "'\n")
self.outFile.write(" DATA '" + sqlData + "'\n")
self.outFile.write(" FILTER '" + sqlFilter + "'\n")
if sqlFilter:
self.outFile.write(" FILTER '" + sqlFilter + "'\n")
elif providerString == 'wms' and lyr.getAttribute("type").encode('utf-8').upper() == 'RASTER':
# it's a WMS layer