marcosiefert
Member
Hi,
I think that I have found a bug in PL/SQL Beautifier.
The format of a merge statement is wrong when the last value of the UPDATE...SET... Part is a Case Block (see the attached images).
Example:
When I comment out the CASE Part it is correct:
Apart from that PL/SQL Developer is really a great tool, I nearly never find a bug in it.
Regards
Marco
I think that I have found a bug in PL/SQL Beautifier.
The format of a merge statement is wrong when the last value of the UPDATE...SET... Part is a Case Block (see the attached images).
Example:
Code:
MERGE INTO test_new n
USING (SELECT *
FROM test_old) o
ON (n.test_id = o.test_id)
WHEN MATCHED THEN
UPDATE
SET t.test_name = s.test_name,
t.changed = CASE
WHEN test_name = 'bbb' THEN
1
ELSE
0
END WHEN NOT MATCHED THEN INSERT(test_id, test_name) VALUES(999, 'aaa');
When I comment out the CASE Part it is correct:
Code:
MERGE INTO test_new n
USING (SELECT *
FROM test_old) o
ON (n.test_id = o.test_id)
WHEN MATCHED THEN
UPDATE
SET t.test_name = s.test_name,
t.changed = /*CASE
WHEN test_name = 'bbb' THEN
1
ELSE
0
END */
WHEN NOT MATCHED THEN
INSERT
(test_id,
test_name)
VALUES
(999,
'aaa');
Apart from that PL/SQL Developer is really a great tool, I nearly never find a bug in it.
Regards
Marco