TCRBatchMove - bmAppendUpdate error

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
goranpro
Posts: 5
Joined: Wed 01 Sep 2010 13:32

TCRBatchMove - bmAppendUpdate error

Post by goranpro » Wed 01 Sep 2010 13:58

Hello,

When I try to append and update records in sqlite database I got ESQLiteError 'database is locked'.

When try to only append records to a table which already have some records I got ESQLiteError 'constraint failed'.

And finally when try to append records to an empty table, this works fine.

My source database is Oracle.

Thanks.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 02 Sep 2010 10:04

Hello,
When I try to append and update records in sqlite database I got ESQLiteError 'database is locked'.
I could not reproduce the problem.
Please send me a complete small sample to alexp*devart*com to demonstrate it, including a script to create the table.
When try to only append records to a table which already have some records I got ESQLiteError 'constraint failed'.

If you have a UNIQUE constraint on a table and you try to do an UPDATE or INSERT that violates the constraint, the database will abort the operation in progress, back out any prior changes associated with the same UPDATE or INSERT statement, and return an error.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Mon 06 Sep 2010 11:18

Hello,

We have reproduced your issue. We will notify you as soon as we have any results.

Post Reply