MyDump / Delphi 2006

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jepdk
Posts: 13
Joined: Mon 23 Oct 2006 13:48
Location: Denmark

MyDump / Delphi 2006

Post by jepdk » Sat 22 Mar 2008 17:10

MyDAC ver. 4.40.025 / Delphi 2006

Using MyDump to restore a previous backup failes sometime when restoring views.

It seams that having a view with a name in sort order before then table using it, generates an error.

Example:
Table name is Test and viewname is atest. View "atest" generates view from table "Test".

During restoring I get an exception saying that "Test" not exists, and that must be because table "Test" not yet has been restoret/created.

From the backup file I have tried to move all "create views.." to the end of the document, and then it works correct.

Is there any solution do get around this problem.

Jan

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 24 Mar 2008 08:53

In order to solve this problem you should specify the MyDump.TableNames in correct order, so that table names are placed before view names.

Post Reply