Apply Casing Options error combining FOR SYSTEM_TIME with HAVING
a.higgins
Posts: 90 Bronze 2
in SQL Prompt
I've been experiencing a recurring error with SQL Prompt and a specific query. After trying to strip out all the bits and pieces, I've been able to isolate the behavior to a situation that has two queries, both of which contain FOR SYSTEM_TIME ALL specification and the HAVING clause.
If I take out either the HAVING or FOR SYSTEM_TIME ALL specification, formatting is able to successfully apply casing options. But, if I leave the query as-is, formatting fails to apply casing options.
SELECT *
FROM TableA
FOR SYSTEM_TIME ALL a
HAVING COUNT(*) >1
SELECT *
FROM TableB FOR SYSTEM_TIME ALL b
HAVING COUNT(*) >1
FROM TableA
FOR SYSTEM_TIME ALL a
HAVING COUNT(*) >1
SELECT *
FROM TableB FOR SYSTEM_TIME ALL b
HAVING COUNT(*) >1
Tagged:
Answers
I can't reproduce the issue with version 9.4.3.7121 and default format style.
Can you upgrade and test again?
Tianjiao Li | Redgate Software
Have you visited our Help Center?
Thanks for clarifying it! I've reproduced and logged as SP-7364 in our internal bug tracking system.
Sorry for the inconvenience caused and please keep an eye on the release note!
Tianjiao Li | Redgate Software
Have you visited our Help Center?
The fix has gone out in 9.4.8.7733. Please upgrade!
Tianjiao Li | Redgate Software
Have you visited our Help Center?