Changeset 11197

Show
Ignore:
Timestamp:
04/03/07 20:12:30 (2 years ago)
Author:
mloskot
Message:

Added test case ogr_sql_15 checking fix for #1537.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/autotest/ogr/ogr_sql_test.py

    r11065 r11197  
    315315 
    316316############################################################################### 
     317# Verify that selecting with filtering by FID works properly. 
     318 
     319def ogr_sql_15(): 
     320 
     321    expect = [ 7 ] 
     322     
     323    sql_lyr = gdaltest.ds.ExecuteSQL( 'select fid,eas_id,prfedea from poly where fid = %d' % expect[0]  ) 
     324 
     325    tr = ogrtest.check_features_against_list( sql_lyr, 'fid', expect ) 
     326 
     327    gdaltest.ds.ReleaseResultSet( sql_lyr ) 
     328 
     329    if tr: 
     330        return 'success' 
     331    else: 
     332        return 'fail' 
     333 
     334 
     335############################################################################### 
    317336 
    318337def ogr_sql_cleanup(): 
     
    339358    ogr_sql_13, 
    340359    ogr_sql_14, 
     360    ogr_sql_15, 
    341361    ogr_sql_cleanup ] 
    342362