-
-
Notifications
You must be signed in to change notification settings - Fork 101
Add support for MS SQL Server #865
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
Conversation
273ab24 to
7a3bdbd
Compare
|
It seems I broke something on Db2... checking |
|
Uff... everything works fine for me locally... I will check again tomorrow. |
...ate-reactive-core/src/main/java/org/hibernate/reactive/bulk/impl/ReactiveIdTableSupport.java
Show resolved
Hide resolved
|
I've found the problem... working on it |
54d2a3f to
6bba877
Compare
|
I think this is ready for a review now. I've kept the refactoring in a separate commit. @gavinking I would appreaciate if you could have a look at it. It still need a release of the Vert.x client. @tsegismont Is there any idea about when it's going to happen? |
|
@DavideD we are working on bugfix release ( |
|
@DavideD @gavinking if I read correctly the build results, we have now 90% of the HR test suite passing? Do you know what's problematic in the remaining 10%? cc @vietj |
Sounds great
It's probably less than that. We have some tests that are not db dependent and we only run them for PostgreSQL. |
|
@tsegismont, When testing |
|
SQL Server doesn't have a json data type so we must keep the corresponding tests ignored. For |
OK let me find some time to try it out properly. |
|
We create the following columns: and then we try to do an insert of a string or an array of bytes (length between 87000 and 100000) we pass the values as parameters of type I said that it gets stuck but it might be just slow. The same tests doesn't take that long with the other databases though |
|
@DavideD I updated eclipse-vertx/vertx-sql-client#608 (comment) about |
|
@DavideD after building eclipse-vertx/vertx-sql-client#1001 the HR test suite passes using these Gradle props: We need to discuss with @vietj when this fix can be delivered. In the meantime, you can workaround the issue by not running prepared queries if table does not exist. |
I'm not sure we can do this. Wouldn't it be possible to release a |
* Separate the logic between Db2 (global temporary tables) and the other databases (local temporary tables). * Remove custom logic to figure out how to run queries * Rename ReactiveConnection#executeStatement to ReactiveConnection#executeUnprepared
* Enable SQL query comments * Quote table name * Use @ColumnTransformer
|
It seems that everything is working fine with the latest Vert.x 4.1.2. |
|
alright! |
|
Merged! |
|
Awesome news! |
Indeed. |
|
Thank you! By the way, @tsegismont, is there a roadmap somewhere about which databases are going to be next? It would be nice to have something on the website to let users know. I've seen a PR for Oracle, so I guess that will be next. But what's coming after that? |
|
There is a PR for Oracle and another for ClickHouse DB (contribution by a community member). Other than that we don't plan to support new databases soon. |
Fixes #255
Follows #852
Support for MS SQL Server.
I had to refactor the code so that we could run the creation of temporary tables as queries and not preparedQueries:
See StatementsWithParameters#execute and CreateTempTablesHandler.
I've also created a separate class for keeping the logic of the insert-and-select queries: 06528d5
We need to wait the next Vert.x SQL client release before we can merge this.