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 215065

Summary: mysql connection had bad name
Product: db Reporter: Kenneth Ganfield <kganfield>
Component: MySQLAssignee: Jiri Rechtacek <jrechtacek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 7.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Kenneth Ganfield 2012-07-02 12:20:08 UTC
Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-9325-on-20120622)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.6.8 running on x86_64; MacRoman; en_US (nb)


When creating a db connection for a mysql db in the Services window, the IDE is creating a display name and URL for the connection that is basically incorrect.


Creating the connection for MySQL creates, eg, the following connection:
jdbc:mysql://localhost:3306/consult?zeroDateTimeBehavior=convertToNull [ken on Default schema]

(correct should be, eg:
jdbc:mysql://localhost:3306/consult [ken on Default schema]


Marking as P2 because this is a regression.
This was working correctly for 7.2 Beta
Comment 1 matthias42 2012-07-02 16:54:25 UTC
This is not a regression but a feature. The name after creation basicly reflects the jdbc url of the connection. The parameter in the jdbc url is intended as a fix for problem in the mysql driver (see bug #183440 for an explanation).

If you meant, that you want be able to set the name of the database connection when creating it, please file an enhancement request, not a defect.
Comment 2 Kenneth Ganfield 2012-07-02 17:06:46 UTC
I see. Thank you for the explanation