-
Notifications
You must be signed in to change notification settings - Fork 696
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support JDBC driver for iSeries DB2 #930
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add db2 into TestDB to check that dialect works correctly?
exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/vendors/DB2.kt
Outdated
Show resolved
Hide resolved
Hello Tapac, Currently I'm working on my bachelor thesis and running low on time. |
…/DB2.kt Co-authored-by: Andrey.Tarashevskiy <[email protected]>
# Conflicts: # exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt
a jdbc connection error needs somebody's attention
I'm still alive! Currently I'm trying to get the db2 tests running. There are two main versions of db2 out there: LUW and as400 (or called "i series" in modern references. But it's an ibm product so "modern" does not apply) So i decided to add LUW support to. The dialect is as far as i know the same. (But all system functions and tables are named differently for extra fun when searching/reading the docs.) The required jdbc driver can be found here (i guess). Currently I ran into this jdbc connection problem. I tested multiple jdbc drivers but no one seems working out of the box. I will pick up my work later on but for now i pushed my half working version of db2 tests. Maybe somebody finds a solution and can fix this. 🐧 |
in db2 columns are by default nullable there is no extra keyword for that
I'd like to add DB2 implementation based on the newly found db2 driver. However, this PR is exist now but hasn't been reviewed or merge for a long time. Shall I open a new PR or create a PR in @V3lop5 fork? |
Hi @sola1tmy, I'm still alive but got no time to finish my work here. This PR is not merged due to failing tests. |
@V3lop5 So maybe I should create a pull request in your fork. |
And, the right driver should be com.ibm.db2:jcc:11.5.60 |
…tBrains-master
Updated to latest db2 driver com.imb.db2:jcc:11.5.7.0
Great! I missed your message and merged the JetBrains-master into my fork.
The latest version I see is 11.5.7.0. Now you should noew be able to run db2 tests using Console output: [...]
24 tests completed, 21 failed, 3 skipped
> Task :exposed-java-time:db2Test FAILED
FAILURE: Build failed with an exception. I'm sorry for that many failing tests. I'll await your fixes and might be able to resolve the other failing tests next week. |
igore emoji test in db2 ignore a groupconcat test which try order by 2 colums
db2 support
I found this framework recently and want to use it in combination with an iSeries / AS400 DB2 database.
Unfortunately, I couldn't get it to work with the required JDBC driver jt400.
What have I done?
I used the jt400 driver with Exposed Spring Starter. The error message
Unsupported driver AS / 400 Toolbox for Java JDBC Driver detected
appeared during the first transaction.For this reason, I created a PULL request that supports the JDBC driver jt400 and at the same time adds the DB2 dialect.