ERROR 1: SQL Expression Parsing Error: syntax error, unexpected '='. Occurred around :
select * from us_county where = 1832
^
DBMI-OGR driver error:
Unable to select:
select * from us_county where = 1832
DBMI-OGR driver error:
Unable to select:
select * from us_county where = 1832
GRASS_INFO_ERROR(2729,1): Cannot open select cursor
GRASS_INFO_END(2729,1)
System description (please complete the following information):
Linux, master branch
GDAL 3.0.4, released 2020/01/28
Additional context
Apparently the geometry is not linked correctly to the attributes. Using v.in.ogr works. When I use ogr2ogr to convert the shapefile to gpkg first and then link, it works, it is somehow related to missing FID column, but I am not sure if it's specific to particular shapefile or shapefile format.
Describe the bug
System description (please complete the following information):
Linux, master branch GDAL 3.0.4, released 2020/01/28
Additional context Apparently the geometry is not linked correctly to the attributes. Using v.in.ogr works. When I use ogr2ogr to convert the shapefile to gpkg first and then link, it works, it is somehow related to missing FID column, but I am not sure if it's specific to particular shapefile or shapefile format.