<div dir="ltr"><div>Very helpful point, it is a shapefile. <br></div><div><br></div><div>so far "#", "--", "//" and "/* */" did not work. I also tried "<!-- comment -->" for good measure which didn't work as well. <br></div><div><br></div><div>I tried a few of those on a geopackage too and they errored out there as well. <br></div><div><br></div><div>I'll try a postgis datas source later today if I remember. <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 3, 2022 at 9:23 AM Johannes Kröger (WhereGroup) <<a href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Hugh,</p>
<p>that depends on the provider in use, a PostGIS provider might
behave differently from a Shapefile. See if wrapping the comment
in /* comment */ works.</p>
<p>Cheers, Hannes<br>
</p>
<div>Am 03.02.22 um 15:16 schrieb Hugh
Kelley:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>Hi all, <br>
</div>
<div><br>
</div>
<div>in the Layer Properties >> source >> Query
Builder dialogue, if I use "--" it shows that I've commented
out that line. when I test the query though, it throws an
error complaining about the comment I included. <br>
</div>
<div><br>
</div>
<div>Is there a way to include a comment in the query? <br>
</div>
<div><br>
</div>
<div>i've like to include a note to myself when I filter things
sometimes as it can be hard months or years later to figure
out the motivation. for example: <br>
</div>
<div><br>
</div>
<div>-- remove built neighborhood bikeway according to KML file
from client, per email 2022-02-03<br>
"LOCAL_ID" NOT IN (4030, 3533, 4307, 6015, 5217)</div>
<div><br>
</div>
<div>Maybe there's a better way to include this note, but it
seems that the closer the note is to the filter query
definition the more likely I am to see it. <br>
</div>
<div><br>
</div>
<div>thanks<br>
</div>
<br>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">Hugh <br>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Qgis-user mailing list
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a href="mailto:johannes.kroeger@wheregroup.com" target="_blank">johannes.kroeger@wheregroup.com</a>
<a href="http://www.wheregroup.com" target="_blank">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu
Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
<a href="https://wheregroup.com/blog/" target="_blank">https://wheregroup.com/blog/</a>
---------------------------------------------
</pre>
</div>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Hugh Kelley <br><div><br></div></div></div></div></div></div></div></div>