Comments
7 comments
-
Same with :DECLARE @Batch_ID SMALLINT,@TotalBalance MONEY
Becomes:DECLARE @Batch_ID SMALLDECIMAL(19, 4)@TotalBalance MONEY
SQL Prompt 9.4.7.7595 -
Ah ha, it's just doing the replace on the line above.
If you test:DECLARE @Batch_ID SMALLINT, @Test BIGINT,@TotalBalance MONEY
It goes to:DECLARE @Batch_ID SMALDECIMAL(19, 4) @Test BIGINT,@TotalBalance MONEY
Replacing the characters directly above the MONEY declaration. -
Hi @tgburgin and @MichelD,
This issue originally appeared as SP-7377 where it broke forDECLARE @m MONEY;<br>--into<br><span>DECDECIMAL(19, 4)@m MONEY;</span>
That has been corrected but it has either caused this issue or this issue went unnoticed and uncorrected. I have reopened SP-7377 and referenced the information here and will update you when I have more info!
Kind regards,
Alex -
Hi all,
Just an update, the team have let me know they've fixed it for the other cases and it should be available in the next release, I'll post here again when that is available!
Kind regards,
Alex -
Great news, thanks @Alex B
-
Hi all,
It's out now, in 9.4.9 ! Do please confirm that it corrects the issue for you!
Kind regards,
Alex -
@Alex B confirmed as fixed in 9.4.9, thank you!
Add comment
Please sign in to leave a comment.
CREATE TABLE blah
When the rule checker highlights MONEY as a problem, click the lightbulb then "Use DECIMAL datatype instead".
SQL Prompt kindly returns this code:
Oops!