Changes between Version 3 and Version 5 of Ticket #1528


Ignore:
Timestamp:
Mar 26, 2007, 8:55:23 PM (17 years ago)
Author:
warmerdam
Comment:

I have confirmed a bug in GetFieldAsString() on the OGR_GEOMETRY special field if the geometry is actually NULL. Also, some serious error conditions on several other special fields. These have been fixed.

The command indicates an input format of shapefile, so OGR SQL is implicated. After my fixes I see no problem. Unfortunately the original reporter (Nowak) did not bother to attach sample data to demonstrate the bug, so it is hard to know if we have fixed the bug he encountered.

I will port the changes back into 1.4 branch as well.

r11086 and r11087

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1528

    • Property Status assignedclosed
    • Property Cc tamas added
    • Property Version unspecified1.4.0
    • Property Milestone 1.5.01.4.1
    • Property Resolutionfixed
    • Property Severity criticalmajor
  • Ticket #1528 – Description

    v3 v5  
    1 {{{
    2 The -where clause behaves instable in some cases.
    3 When used against MySQL or PostgreSQL, with OGR dialect of SQL, segmantation fault is thrown.
    4 It should be handled cleanly, if unsupported dialect is used.
     1The -where clause behaves instable in some cases.  When used against MySQL or PostgreSQL, with OGR dialect of SQL, segmantation fault is thrown. It should be handled cleanly, if unsupported dialect is used.
    52
    63Example of crash:
    7 
    8 --------------------------------------------------------------------
     4{{{
    95madmappers:/home/work# /opt/gdal-r11007_x86-linux/bin/ogr2ogr -f MySQL MYSQL:sptest,user=sptest,password=,host=127.0.0.1 -nln locust -update -overwrite FAO_DBsummary.shp -where 'OGR_GEOMETRY=POINT'
    106Segmentation fault
     
    139[Switching to Thread 1090607360 (LWP 28956)]
    14100x40357753 in OGRFeature::GetFieldAsString () from /opt/gdal-r11007_x86-linux/lib/libgdal.so.1
    15 --------------------------------------------------------------------
    16 
     11}}}
    1712The major goal of this report is to review and fix potential problems with  handling SQL queries in OGR by various ORG drivers.
    18 }}}