SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Incorrect Highlighting of Matching Column/Values in INSERT

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
Incorrect Highlighting of Matching Column/Values in INSERT
Author Message
m00r



Joined: 31 Aug 2010
Posts: 10
Country: Russian Federation

Post Incorrect Highlighting of Matching Column/Values in INSERT Reply with quote
with sql assistant 5.1.10 and MS SQL
Code:
/* Sample tests of incorrect Highlighting of Matching Column/Value Pairs in INSERT Statements */
CREATE TABLE #A (col_a INT, col_b INT, col_c INT, col_d DATETIME)

INSERT INTO #A (col_a, col_b, col_c) VALUES (1,2,3)     /* OK */
INSERT INTO #A (col_a, col_b, col_c) SELECT (1,2,3)     /* OK */

INSERT INTO #A (col_a, col_b, col_c) VALUES (1+1,2,3)     /* Wrong (with expression 1+1) */
INSERT INTO #A (col_a, col_b, col_c) SELECT 1,2,3     /* Wrong (no brackets after SELECT) */
INSERT INTO #A (col_a, col_b, col_d, col_c) SELECT (1,2,GetDate(),3)     /* Wrong (with function (expression again)) */

Mon Sep 06, 2010 10:11 am View user's profile Send private message
SysOpJ



Joined: 20 Aug 2010
Posts: 95

Post Reply with quote
Could you clarify what you're asking, please? I'm a little confused.

Your second insert line is not syntactically correct with the parentheses. The fourth, which you are noting as "wrong" is correct. So perhaps you're asking something other than syntax?

Please clarify.
Tue Sep 07, 2010 7:13 am View user's profile Send private message
m00r



Joined: 31 Aug 2010
Posts: 10
Country: Russian Federation

Post Reply with quote

Cursor on 2d column in INSERT. 2d column highlighted in VALUES. Correct.



Cursor on 2d column in INSERT. 2d column highlighted in SELECT. Although this line is not syntactically correct but highlighted correctly :-)



Cursor on 2d column in INSERT. No column highlighted in VALUES. Wrong.



Cursor on 2d column in INSERT. No column highlighted in SELECT. Wrong.



Cursor on 4d column in INSERT. No column highlighted in SELECT. Wrong.
Tue Sep 07, 2010 8:10 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Reply with quote
Hi, thank you for your feedback.

This behavior is by design and it is documented. In the initial implementation of the matching column/value pair highlighting function we don't support expressions, including nested function. We only support simple name/value pairs. We hope to improve this column/value pair matching function and cover more complex situations in future maintenance releases.
Thu Sep 09, 2010 6:38 am View user's profile Send private message
m00r



Joined: 31 Aug 2010
Posts: 10
Country: Russian Federation

Post Reply with quote
Aaa. It's not a bug, it's a feature :)
Waiting for new releases!
Thu Sep 09, 2010 11:21 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.