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.
1. Connect to "travel" Java DB. 2. Rightclick "Tables" and choose "Create Table...". 3. Set table name, column name, choose INTEGER type, set size to 3 and press "OK". Result: Table with column is created, but size of column is 10, not 3 as it was set. I guess it can be true not only for INTEGER type.
I tried also with CHAR type. By default size is set to 0, but after table creation I see that column size is 1. I didn't change anything.
The problem here is that you *should not* be able to enter a size for types that are of fixed size like CHAR and INTEGER. I would be much more concerned if you could actually create a CHAR of size 0 or an INTEGER of size 3. Yikes! The size field should only be enabled for variable length types. We really should fix this for this release, it's a constant source of confusion and annoyance.
Hi Mike this Create Table dialog needs some work. Can you please create a wireframe for this This dialog is opened from a connection, expand the connection, select Tables then right-click and choose Create Table I'll attach screenshots of the dialog and also from Eclipse to see how they their dialog looks
Created attachment 74718 [details] screenshot of the Create Table dialog
Sorry Mike I'll create a new issue. I thought this was about the size of the UI
42c2e1024e37 seems to be fixed. Needs thorough testing with different databases
Verified with build 081213.
Integrated into 'main-golden', will be available in build *200812140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/42c2e1024e37 User: John Baker <jbaker@netbeans.org> Log: #149041 fix
Sorry, not fixed. Need MetaData API for fixed types b6ea5aebc071 - make ready for API
This seems like more trouble than it's worth. Most fields set their own size. At least for Derby, only VARCHAR, CHAR FOR BIT and BLOB, a user can set the column size. Consider reducing the priority ?
Integrated into 'main-golden', will be available in build *200812151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/b6ea5aebc071 User: John Baker <jbaker@netbeans.org> Log: #149041 improve code but not fixed until TODO resolved
Reassigned to new owner.
Fixed already.