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.
Summary: | [67cat] View Data action query should contain a semicolon in generated sql query string | ||
---|---|---|---|
Product: | db | Reporter: | rajivderas <rajivderas> |
Component: | SQL Editor | Assignee: | Jaroslav Havlin <jhavlin> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | NETFIX |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
rajivderas
2009-04-27 07:31:44 UTC
As same behavior as in NB6.5, changing to RFE for the next release. Reassigned to new owner. The fix is not that invasive - this needs adjustment in the "Database Explorer" module (db), which contains the class: org.netbeans.modules.db.explorer.action.ViewDataAction line 84 needs to be ajusted: SQLEditorSupport.openSQLEditor(connection.getDatabaseConnection(), expression, true); I would change it to: SQLEditorSupport.openSQLEditor(connection.getDatabaseConnection(), expression + ";\n", true); This also inserts a newline character, which I as a user would prefer. http://hg.netbeans.org/core-main/rev/58d032b9c6bc Fixed. Thank you. Integrated into 'main-golden', will be available in build *201210160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/58d032b9c6bc User: Jaroslav Havlin <jhavlin@netbeans.org> Log: #163710: View Data action query should contain a semicolon in generated sql query string |