Red Gate forums :: View topic - Formatting bug when using IIF
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Prompt 6
SQL Prompt 6 forum

Formatting bug when using IIF

Search in SQL Prompt 6 forum
Post new topic   Reply to topic
Jump to:  
Author Message
eugenen



Joined: 23 Feb 2010
Posts: 4

PostPosted: Tue Nov 12, 2013 12:32 pm    Post subject: Formatting bug when using IIF Reply with quote

if you take the following statement, the spaces are intenional white spaces, and format it it does not format the IIF as nicely as the datediff

Code:

select
   iif(     rrbr.ColumnName = 'Test',    0,       1),
   datediff(       day,         getdate(),       getdate()    )
from
   recon.ReconResultsByRow as rrbr

select
   iif(
   rrbr.ColumnName = 'Test',    0,       1),
   datediff(day, getdate(), getdate())
from
   recon.ReconResultsByRow as rrbr
Back to top
View user's profile Send private message
Aaron Law



Joined: 28 Jun 2013
Posts: 139
Location: Red Gate Software

PostPosted: Tue Nov 12, 2013 7:49 pm    Post subject: Reply with quote

This'll be fixed in the next release of prompt (and is also in the private build I mentioned on your other post)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group