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 194617

Summary: Setting Value of Cell to NULL or DEFAULT fails
Product: db Reporter: matthias42
Component: Show DataAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED FIXED    
Severity: normal CC: jkovalsky
Priority: P3 Keywords: NETFIX
Version: 7.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Remove the editor component from the NULL/Default set paths
Corrected patch (previous diff was done in wrong order)

Description matthias42 2011-01-22 20:14:57 UTC
Hello,

when editting data, I noticed first, that I was unable to set the column to NULL via the Keyboard Shortcut (STRG+0). This was a INT-Column on mysql, with default NULL. The Cell-Editor was opened and a warning was generated and the value was not set to null.

See the attached patch, which does what I would expected an circumvents the editor problem. I don't see a real reason for initializing the Cell-Editor (it should be the modells responsibility to invoke a view-update), at at least my initial test were ok.

Thanks

Matthias
Comment 1 matthias42 2011-01-22 20:16:05 UTC
Created attachment 105271 [details]
Remove the editor component from the NULL/Default set paths
Comment 2 matthias42 2011-01-23 16:20:59 UTC
Created attachment 105282 [details]
Corrected patch (previous diff was done in wrong order)
Comment 3 Jiri Rechtacek 2011-01-24 13:31:39 UTC
Thanks for your patch, I'll review and test it and let you know.
Comment 4 Jiri Kovalsky 2011-01-24 14:09:59 UTC
Added to list [1] of community contributed bug fixes. Thanks for your patch Matthias!

[1] http://wiki.netbeans.org/NetFIXIssues
Comment 5 Jiri Rechtacek 2011-02-01 09:27:06 UTC
Thank you for patch, has been applied in core-main/rev/aa46871834d9
Comment 6 Quality Engineering 2011-02-02 06:18:47 UTC
Integrated into 'main-golden', will be available in build *201102020000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/aa46871834d9
User: Jiri Rechtacek <jrechtacek@netbeans.org>
Log: #194617: Setting Value of Cell to NULL or DEFAULT fails;
applied matthias42's patch