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 137786 - SQL History: Setting number of statements to save doesn't seem to have an effect for newly executed statements
Summary: SQL History: Setting number of statements to save doesn't seem to have an eff...
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: SQL Editor (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: John Baker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-20 00:46 UTC by David Vancouvering
Modified: 2008-06-23 16:57 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 David Vancouvering 2008-06-20 00:46:51 UTC
- Execute a bunch of statements (say 10)
- Open SQL history dialog and set max statements to save to 3
- Close SQL history dialog and re-open, you'll see three statements
- Close SQL history dialog and execute a new statement
- Open SQL history dialog - you'll see *four* statements.  The oldest statement should have dropped off of the list.
- Close SQL history dialog, execute new statement
- Open SQL history dialog - now you see three statements, but *the one just executed is not there*.  Rather than
dropping off the oldest statement, we've dropped off the newest statement

Marking as P3 because I think most of our users won't limit the number of statements to save.
Comment 1 John Baker 2008-06-20 09:49:32 UTC
reproducible
Comment 2 John Baker 2008-06-23 09:08:36 UTC
http://hg.netbeans.org/main/rev/e1f53914a0d3
Comment 3 Quality Engineering 2008-06-23 16:13:23 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #277 build
Changeset: http://hg.netbeans.org/main/rev/e1f53914a0d3
User: John Baker <jbaker@netbeans.org>
Log: #137786  SQL History: Setting number of statements to save doesn't seem to have an effect for newly executed statements
Comment 4 Roman Mostyka 2008-06-23 16:57:48 UTC
Verified with build 080623.