IBM Data and AI

Welcome to the IBM Data and AI Ideas Portal for Clients!

We welcome and appreciate your feedback on IBM Data and AI Products to help make them even better than they are today!
Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal. If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.
IBM Employees:
Clients:
  • Our team welcomes any feedback and suggestions you have for improving our offerings / products! This forum allows us to connect your offering / product improvement ideas with IBM product and engineering teams.

  • If you have not registered on this portal please click on the following link and register. To complete registration you will need to open the email you will receive from Aha to confirm your identity. http://ibm.biz/IBM-Data-and-AI-Portal-Register

Additional Information:
  • The shorter URL for this site is: https://ibm.biz/IBM-Data-and-AI-Ideas

  • To view our roadmaps: http://ibm.biz/Data-and-AI-Roadmaps

  • Reminder: This is not the place to submit defects or support needs, please use normal support channel for these cases

  • Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.

URL for JDBC without ending semi-colon in optional parameters

When using extra parameters for the connection in a JDBC URL, the complete URL should end with a semi-colon. However, other drivers for other RDBMS do not need the las semi-colon; actually, the semi-colon is only used for key/value separation, not termination.

 

The Db2 driver uses StringTokenizer, and it generates an error like:

com.ibm.db2.jcc.am.SqlSyntaxErrorException: [jcc][10165][10051][4.26.14] Invalid database URL syntax: jdbc:db2://mydb2server:50000/sample:user=db2inst1;password=db2inst1. ERRORCODE=-4461, SQLSTATE=42815

Because the code asks the StringTokenizer the next token ending with a semi-colon. It should ask a token ending with "a semi-colon or an end of line."

 

When configuring applications that builds the URL for JDBC, like Pentaho, one should but an extra semi-colon in the last parameter to make it work.

 

The Db2 documentation does not mention that the URL should end with extra parameters - https://www.ibm.com/support/knowledgecenter/en/SSEPGG_11.5.0/com.ibm.db2.luw.apdv.java.doc/src/tpc/imjcc_rjvdsprp.html

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jan 3 2020
  • Needs review
Why is it useful?
Who would benefit from this IDEA? Developers, DBA
How should it work?

TheJDBC URL should work with the following possibilities:

 

jdbc:db2://mydb2server:50000/sample:user=db2inst1;password=db2inst1
jdbc:db2://mydb2server:50000/sample:user=db2inst1;password=db2inst1;

 

Ending with and without semi-colon.

Idea Priority High
Priority Justification Configuring the DB2 JDBC driver is harder than other RDBMS
Customer Name Experian
Submitting Organization
Submitter Tags
  • Attach files

NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "anonymous@euprivacy.out" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions