This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 142604 - SQL CC: Code completion wrongly add -
Summary: SQL CC: Code completion wrongly add -
Status: RESOLVED INVALID
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Andrei Badea
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 17:02 UTC by Roman Mostyka
Modified: 2008-08-01 17:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-08-01 17:02:22 UTC
1. Create table "-test".
2. Open SQL Editor, type "select -" and press Ctrl+Space.
3. Choose "-test" from the list and press Enter.

Result: Statement becomes "select -`-test`". If user want to have string "-`-test`" then "-`-" should be written and
then CC is invoked. But if user just write "select -" and then select "-test" from CC, then statement should rather
become "select `-test`" since select .
Comment 1 Andrei Badea 2008-08-01 17:31:23 UTC
This use case is a bit too convoluted. Moreover, I consider it correct behavior to quote an identifier which needs
quoting, such as "-test" in this case. If the user wants

select `-test`

then the user should invoke the CC after

select `-|