Changes between Version 5 and Version 6 of Ticket #1521


Ignore:
Timestamp:
Feb 23, 2010, 6:21:22 PM (14 years ago)
Author:
Mateusz Łoskot
Comment:

Fixed in trunk (r18897)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1521

    • Property Status reopenedclosed
    • Property Resolutionfixed
  • Ticket #1521 – Description

    v5 v6  
    1 {{{
    21I want to delete features from a shape file. When i try repack after deleting the features, the .dbf file it self is getting deleted.
    32
    43When i trace down the repack function, i could find that in ogrshapelayer.cpp VSIRename(.....) returns OGRERR_FAILURE.
    54
     5{{{
    66/* -------------------------------------------------------------------- */
    77/*      Cleanup the old .dbf and rename the new one.                    */
     
    1515        return OGRERR_FAILURE;
    1616        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    17 
     17}}}
    1818
    1919Iam calling the delete feature and repack as follows
     20{{{
    2021.....
    2122poLayer->DeleteFeature(iField)
    2223poDS->ExecuteSQL("REPACK myshapefile", NULL, NULL);
    23 
    24 -------------
    2524}}}