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 111234 - QueryEditor: combo-box "Sort Order" contains superfluous number
Summary: QueryEditor: combo-box "Sort Order" contains superfluous number
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks: 152776
  Show dependency tree
 
Reported: 2007-07-27 13:53 UTC by _ alexpetrov
Modified: 2009-05-25 21:07 UTC (History)
1 user (show)

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 _ alexpetrov 2007-07-27 13:53:37 UTC
Mac OS X, j2sdk 1.5.06, build 0707241200
&
Product Version: NetBeans IDE Dev (Build 200707270000) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: 
Windows XP version 5.1 running on x86;

1. Connect to DB Derby Travel
2. Use poup menu item "Design Query..." on DB table "Person"
3. In the opened Query Editor:
- in the column pane click the cell ("PERSONID" - "Sort Type") and select "Ascending"
    Result:
    - number "1" will appear in the cell ("PERSONID" - "Sort Order")
- in the column pane click the cell ("NAME" - "Sort Type") and select "Descending"
    Result:
    - number "2" will appear in the cell ("NAME" - "Sort Order")
    - in SQL pane the following clause will be added:
      ORDER BY "TRAVEL"."PERSON"."PERSONID" ASC, 
               "TRAVEL"."PERSON"."NAME" DESC 
4. In the column pane click the cell ("PERSONID" - "Sort Order")
    Result:
    - combo-box contains items " ", "1", "2", "3"

The number "3" is superfluous. 

Its using in column pane has no effect for SQL pane.
If you set "2" for "PERSONID" and "1" for "NAME" in column pane, then in SQL pane a clause will appear:
ORDER BY "TRAVEL"."PERSON"."NAME" DESC, 
         "TRAVEL"."PERSON"."PERSONID" ASC 

Then set "3" for "NAME" in column pane - nothing happens in SQL pane.
Comment 1 Petr Blaha 2008-11-18 13:21:02 UTC
Move visualsqleditor subcomponents below visualweb