× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
Michal reported 2022-01-04T11:08:30Z  · tomconrad last modified 2022-01-06T20:57:23Z

ExecuteEdit on UNIONed SELECT corrupts data


Priority Major
Complexity Unknown
Component Tools - Table Data Editor
Version Future

Hello,

I did union of two data sets (note that they are practically the same, down to the PK definition):

SELECT * FROM  tMeteoMessageMETAR WHERE issueDate >= '2022-01-04 00:00' or issueDate is null
UNION ALL
SELECT * FROM  tMeteoMessageSPECI WHERE issueDate >= '2022-01-04 00:00' or issueDate is null

And run it as Execute Edit since I needed to alter them manually. After doing my changes in just appeared new window, I hit Ctrl+S to actually do the changes.

To my great surprise a data originating from tMeteoMessageMETAR was changed, but the other ones were NOT. After some digging around and examining the generated SQL UPDATE statements, I found out, that they point to METAR table, despite being from SPECI table.

So in previous run, after hitting Ctrl + S wrong data were modified (confirmed by looking them up by PK). But since it modified exactly one row with each statement no error was risen by AquaDataStudio.

I hope this explanation is clear enough. If not I will be happy to provide more details.

Aqua Data Studio 20.0.4
Build #: 57271
Built on: 2019-Oct-21 09:27:07 AM     

2 attachments

Issue #15883

New
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017