SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[SA 7.2.338 Pro] - Formatting issue (OBJECT::) [FIXED]

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[SA 7.2.338 Pro] - Formatting issue (OBJECT::) [FIXED]
Author Message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post [SA 7.2.338 Pro] - Formatting issue (OBJECT::) [FIXED] Reply with quote
I've got a formatting issue with statements granting rights. The following statement:
Code:

GRANT SELECT ON OBJECT::fohi.fit_get_forgalmi_hir_reszletek TO new_line

gets misformatted to:
Code:

GRANT SELECT ON OBJECT : : fohi.fit_get_forgalmi_hir_reszletek TO new_line

and the surplus spaces around colons make this syntactically incorrect.


Last edited by gemisigo on Mon Oct 26, 2015 9:17 am; edited 2 times in total
Fri Jul 31, 2015 4:38 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
I'm afraid it doesn't understand OBJECT:: notation and treats : as an operator. To disable extra spacing added, change Operators Spacing option in SQL Assistant settings for the code formatting style you use.
Mon Aug 03, 2015 10:21 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
SysOp wrote:
To disable extra spacing added, change Operators Spacing option in SQL Assistant settings for the code formatting style you use.


Unfortunately, that's not an option. The extra spaces added by Operators Spacing are part of the formatting policy.
I tried adding a new rule:
Code:

GRANT ... ON OBJECT::... TO ...

but it didn't help.
I've reported a very similar problem two years ago, complaining about :=, +=, -=, etc. being split the same way, you can read it here. Would you check if that fix could be applied to this issue as well, please?
Mon Aug 03, 2015 10:37 am View user's profile Send private message
michalk



Joined: 29 Aug 2014
Posts: 211

Post Reply with quote
I reported the same issue for postgresql database. The double colon is used here for casting datatypes for example some_variable::INTEGER, NULL::VARCHAR etc
Adding spaces around colons results in syntax error.
Wed Aug 05, 2015 6:11 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
I located an existing bug report in the system with # SA0026838 for incorrect formatting of :: object notation that should fix both issues. The fix will be available in version 7.3, expected sometime in mid of September (tentative, unconfirmed time so far).


Last edited by SysOp on Mon Aug 10, 2015 11:07 am; edited 1 time in total
Mon Aug 10, 2015 10:00 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
Splendid! Thank you very much!
Mon Aug 10, 2015 10:52 am View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
Any hints on the arrival of 7.3?
Thu Sep 17, 2015 6:23 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
It's expected by the end of this month, but no specific date is given yet.
Thu Sep 17, 2015 10:40 pm View user's profile Send private message
gemisigo



Joined: 11 Mar 2010
Posts: 2165

Post Reply with quote
That's great. Is a short list of changes/bugfixes/additions available?
Fri Sep 18, 2015 2:23 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Reply with quote
Sorry, it's not available yet.
Fri Sep 18, 2015 9:20 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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
Design by Freestyle XL / Flowers Online.