UpdateAllRecords bug?

jda jda at his.com
Mon Oct 22 14:26:31 CDT 2007


Hi Ruslan,

Is there a known issue with updateAllRecords.

With a fresh db I'm doing this with a cursor:

  myCursor = myDatabase.SQLselect(query, EVCursorLocation.kServerSide, 
EVLockType.kReadWrite, EVCursorDirection.kRandom)
     if myCursor <> nil and myCursor.recordCount > 0 then
             myCursor.Field(fldNames).setString(s)
     end if
    myCursor.updateAllRecords

     result = myCursor.firstRecord -> error

If there is more than one record on the cursor, this last line gives 
an error. Here's the error if there are 50 recrods in the cursor:

Segment "51" is wrong. The last segment is "50".

The db is now corrupted, according to diagnose.

Looping through myCursor works, and so I'm using that in my code.

I can upload a db to Mantis, if you want to see it.


Jon


More information about the Valentina mailing list