Closed jidanni closed 1 week ago
Else it is really hard to make sure one gets all the quoting right.
The 2 examples are distinct. I don't feel we need to do anything else here.
The 'BRUSH(fc:#01234567)'
thing is "string literal", a string that is given directly with SQL instead of reading it from the database. This kind of fields cannot be excluded and select *
does not select it either.
I guess that you'll get what you want simply with this:
ogrinfo -sql "select *, 'BRUSH(fc:#01234567)' as OGR_STYLE HIDDEN from minimal" minimal.jml
Well all this needs to be mentioned there on the document.
As the user will plug example A into example B, which won't work.
The 'string' as OGR_STYLE
thing is basic SQL, similar to select 2+3 as sum
that makes 5. I know that GDAL users can make working queries with simple SQL by examples without knowing anything about the language, but for my mind learning SQL by the ogr2ogr usage examples is not the right route.
Feature description
On https://gdal.org/en/latest/user/ogr_sql_dialect.html
works fine.
But below it, in addition to just saying,
please also to be sure to use that additional syntax upon the earlier example:
Else it is really hard to make sure one gets all the quoting right.
Not related to https://github.com/OSGeo/gdal/issues/8668#issuecomment-2121680163 version issues.