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 144510 - [65cat] Page Size Field Validation in SQL Editor results window
Summary: [65cat] Page Size Field Validation in SQL Editor results window
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ ahimanikya
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-20 02:45 UTC by adam_myatt
Modified: 2008-08-30 05:40 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 adam_myatt 2008-08-20 02:45:24 UTC
[ BUILD # : 200808170243 ]
[ JDK VERSION : 1.6.0_07 ]

In SQL Editor results window, after having executing a SQL Select
statement with results, I can change the Page Size field to display a
different number of results so the results are paginated. If I enter
a value such as 10, or 50, or 200 and press enter the window
refreshes correctly. However, if I enter a value such as 9999 and
press enter the window refreshes, but the Page Size field is no
longer editable. Click inside it again and try changing the number. I
cannot. No visible error or exception occurs.
Comment 1 _ ahimanikya 2008-08-20 05:30:25 UTC
I did try this with various sample database tables, I was not able to reproduce this. If you are using the sample
database please let me know which database you are using. 

Please provide steps to reproduce this.
Comment 2 adam_myatt 2008-08-20 15:45:04 UTC
I tried this with an Oracle database and a MySQL database, on a dozen different tables in each database, on separate 
days. It is not specific to one table or one type of database.

If I enter a value in the Page Size field such as 10, or 50, or 200 and press enter the window
refreshes correctly. However, if I enter a value such as 9999 and
press enter the window refreshes and the Page Size field LOOKS like it can be edited, but is no
longer editable. Click inside it again and try changing the number to 8888 or 5555 or 200. I
cannot. No visible error or exception occurs.

Product Version: NetBeans IDE Dev (Build 200808170243)
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 3 Jiri Kovalsky 2008-08-26 19:54:36 UTC
Adam provided more information on this issue so I don't consider it INCOMPLETE now. Or are we still waiting for more data?
Comment 4 _ ahimanikya 2008-08-28 20:52:43 UTC
I tried to reproduce with couple of databases and both Windows and Mac without any success. Everytime I am able to edit
after I enter 9999.

BTW, the maximum page size is 9999, if you want to edit after entering 9999 then you need to delete and then enter new
numbers.
Comment 5 adam_myatt 2008-08-29 01:40:40 UTC
I have a further clarification to help replicate this problem. 

Once you view some data in the grid, double-click the # 20 in the page field size. The 20 should become highlighted. If 
you type 50, the 20 is overwritten with 50 as expected. Now type 9999 into the field and press enter. The grid 
refreshes and 9999 remains in the page field size. DOUBLE-CLICK the 9999 so it is highlighted. Now try to overwrite it 
by typing 50 or 555. The field should prevent you from typing over the number. If you press Backspace with the number 
highlighted it does disappear, but for some reason you cannot type over the numbers once highlighted ONLY AFTER you 
entered an invalid value and pressed enter.

Comment 6 _ ahimanikya 2008-08-29 06:10:06 UTC
http://hg.netbeans.org/main/rev/916eeb2f1afa

Comment 7 Quality Engineering 2008-08-30 05:40:19 UTC
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/916eeb2f1afa
User: ahimanikya@netbeans.org
Log: #144510 [65cat] Page Size Field Validation in SQL Editor results window