Giter VIP home page Giter VIP logo

Comments (9)

psyking841 avatar psyking841 commented on July 23, 2024 1

@shawnzhu

from trino-db2.

psyking841 avatar psyking841 commented on July 23, 2024 1

This ticket is not for enhancement, it is a bug report... @shawnzhu

from trino-db2.

shawnzhu avatar shawnzhu commented on July 23, 2024 1

The error message from #14 (comment) is Invalid database URL syntax: jdbc:db2://db2whoc-flex-performance-riubnzs.services.dal.bluemix.net:50001/BLUDB:sslConnection=true. ERRORCODE=-4461, SQLSTATE=42815

So what doesn't work:

jdbc:db2://xxx.services.dal.bluemix.net:50001/BLUDB:sslConnection=true

What works (for me):

jdbc:db2://xxx.services.dal.bluemix.net:50001/BLUDB:sslConnection=true;

So the difference is the trailing semi-colon. See official guide in https://www.ibm.com/support/knowledgecenter/en/SS6NHC/com.ibm.swg.im.dashdb.doc/connecting/connect_connecting_jdbc_applications.html

from trino-db2.

psyking841 avatar psyking841 commented on July 23, 2024 1

@shawnzhu
Yeah, you are right. I just tested the URL with colon. And it works. Thanks to IBM's innovative URL design for their DB2 jdbc driver!

from trino-db2.

psyking841 avatar psyking841 commented on July 23, 2024

PR has been filed for this issue: #15

from trino-db2.

shawnzhu avatar shawnzhu commented on July 23, 2024

In one case, I used this library connected to DashDB (named DB2 on Cloud now) via SSL and it works well w/o code change. So I assume one of the expected outcome is documentation on howto.

from trino-db2.

psyking841 avatar psyking841 commented on July 23, 2024

I would love to know how to connect to learn the "how to".
I am using "IBM Db2 Warehouse on Cloud", at lease for this product, appending "sslConnection=true" to the url did not work for my case.

from trino-db2.

psyking841 avatar psyking841 commented on July 23, 2024

Let me know if you would like me to close the PR: #15.

from trino-db2.

shawnzhu avatar shawnzhu commented on July 23, 2024

Yeah, you are right. I just tested the URL with colon. And it works. Thanks to IBM's innovative URL design for their DB2 jdbc driver!

@psyking841 I prefer not to change what it was in DB2 JDBC driver/doc when using this connector, or we can do something to make such configuration more humane. will close #15 but create a new one to highlight this case.

from trino-db2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.