Red Gate forums :: View topic - Formatting bug when using windowed functions
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 windowed functions

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



Joined: 23 Feb 2010
Posts: 5

PostPosted: Tue Nov 12, 2013 12:22 pm    Post subject: Formatting bug when using windowed functions Reply with quote

I would not expect the t.* or the tables to be aligned/placed where they are. If you comment the first line i.e the sum then it formats properly
Code:

select
   sum(t.Amount) over (),
                  t.*
from
                  payment.Applications as a
                  inner join payment.Transactions as t
                     on t.ApplicationId = a.ApplicationId
where
                  a.ExternalId = '506EAE98-5C08-49D6-B6FB-59710A00000F'


select
   --sum(t.Amount) over (),
   t.*
from
   payment.Applications as a
   inner join payment.Transactions as t
      on t.ApplicationId = a.ApplicationId
where
   a.ExternalId = '506EAE98-5C08-49D6-B6FB-59710A00000F'
Back to top
View user's profile Send private message
Aaron Law



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

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

Thanks for reporting this, it definitely looks wrong to me and will be fixed in the next update to prompt which should be released next week.

In the meantime you can download a private build (only had some basic testing) with a fix from here.
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