Delete not work if Join

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
[email protected]
Posts: 12
Joined: Fri 25 Sep 2015 09:28

Delete not work if Join

Post by [email protected] » Thu 12 Nov 2015 14:16

When a delete is done witha tUniquery mysql mode there is no result, exept internally but no delete is done in the MYSQL IF the uniquerys SQL contains a JOIN. With no join it works fine.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Delete not work if Join

Post by ViktorV » Fri 13 Nov 2015 13:49

If several tables take place in a query, MyDAC allows data modification in one table only. To specify the name of the table to modify data, there is the TMyQuery.UpdatingTable property. If this property is not set, MyDAC uses the first table in the SELECT statement for modification by default. See more details about this property in MyDAC help:https://www.devart.com/mydac/docs/?deva ... gtable.htm

Post Reply