Comments (9)
from trino-db2.
This ticket is not for enhancement, it is a bug report... @shawnzhu
from trino-db2.
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.
@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.
PR has been filed for this issue: #15
from trino-db2.
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.
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.
Let me know if you would like me to close the PR: #15.
from trino-db2.
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)
- Supports IAM Authentication HOT 1
- Keeps using uppercase table name for 'CREATE TABLE' statement HOT 1
- Make 'INLINE LENGTH' parameter configurable
- INSERT INTO <table_name> AS SELECT doesn't work HOT 1
- Picks up prestosql v332 HOT 2
- Not able to delete or update HOT 1
- ODBC connector or bridge for DB2 HOT 3
- DB2 Driver HOT 1
- Switch build environment to Java@11
- Support ANALYZE HOT 1
- Support data type timestamp(3) with time zone HOT 9
- Support trinodb 351
- Publish to maven central
- Explore possibility of improving read performance by implementing baseJdbcClient.getSplits()
- CREATE TABLE AS SELECT statement doesn't respect NOT NULL constraint
- java.lang.IllegalArgumentException: Precision is out of range: 10 HOT 3
- Failed to read column with data type "TIMESTAMP" HOT 1
- Update to 359 HOT 1
- Upgrade to trino 364
- How to install?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trino-db2.