See:
https://issues.qgis.org/issues/18786 It looks like there are different 'paths' in which expressions are solved. Somebody can tell if this should be best solved in - QGIS (to create a better 'sql' string) - GDAL (fix pickyness with brackets?) Regards, Richard _______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer