-
-
Notifications
You must be signed in to change notification settings - Fork 101
Mssql server test fixes #852
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
Requires a change to ReactiveLoader
Excellent. |
@tsegismont I'm now having issues with null.
and then try to insert a null
Any idea? |
@DavideD override |
@DavideD I had a discussion about this with @gavinking in #744 The issue is tracked upstream by eclipse-vertx/vertx-sql-client#963 |
Thanks all! That worked! I've also enabled the build on CI for this branch so that we can can see it the build. I will continue tomorrow. |
Nevermind... there is an issue with testcontainer, probably the JDBC driver is missing. I will check tomorrow |
Excellent. At that rate we could essentially go ahead and disable the failing tests and ship it. |
@blafond Maybe we can exploit the different time zones and see if you can fix some of the tests while I'm off? |
Tescontainers nedds it to check the container
5a40cd0
to
a1f87f8
Compare
Test containers works now. |
@tsegismont How do I get the generated id when a column is of type
JDBC returns it in the metadata after an insert but Vert.x returns an empty result instead. Do I need to do a second query? |
@tsegismont I think something is not quite right with
With the vert.x client, if I try to run an insert query with the value |
You can use I haven't tried The Pg client has a doc section about retrieving data using |
Can you please file a complete reproducer? We have tests for |
@DavideD @gavinking the null column string workaround is no longer needed with 4.1.1-SNAPSHOT |
Yes, we already use it for Postgres |
and it gives me:
|
The insert into EntityWithIdentity (name, position) OUTPUT INSERTED.id values (@P1, @P2) |
Nice one! That seems to work |
31c4a59
to
b71ee9f
Compare
@tsegismont About |
Down to 8 tests failing but there are only 3 types of errors remaining:
Cheers |
I found this issue that @Gavin King logged last year, but found a work around for Db2. So vertx development hasn't gotten around to fully supporting temp tables for all dbs. So for now I'd suggest disabling these tests for mssql. |
@DavideD guid type is not supported yet, see eclipse-vertx/vertx-sql-client#608 (comment) @blafond about temporary tables: we've added this to HR and it fixed some tests Lines 30 to 33 in cafef01
So I'm surprised you found temporary tables cannot be created with the Reactive MS SQL Client. Of course we may have missed something. In this case please file an issue upstream with a reproducer. |
Yes, but we store them as bytes. Anyway, the issue is that the converter we are using expects a Working on it. |
Yes, I don't think that's the issue. We create and select temporary tables several times without problems before reaching the error. It's probably something specific that we are doing with the temporary table in those tests that are failing that it's causing the exception. |
That uses the JDBC driver. Have you tried to run the same queries as native queries with Hibernate Reactive? |
Yeah, |
Well... no... that column on the database is
I think it's the fact that we convert it using a |
Ah... I understand what you mean now |
@tsegismont Is there a snapshot with this included? eclipse-vertx/vertx-sql-client#963 |
Never mind, I've just installed it locally. I've spent some time working on the UUID issue. What's happening is that when we insert the UUID converted to a The column in the database is defined as Surprisingly, everything works if I remove [the change about making the columns Any idea of what could cause this behaviour? Note that I've tried to recreate a test for the Vert.x Client but everything seems to work fine with it (with or without the null). Anyway... If I use the latest snapshot without the special dialect for Sql Server, it works. |
It also works when I use the special dialect... well, whatever... |
It seems we have a persistent DB2 test failure which prevents the snapshots from being deployed, will look into this, thanks for the heads-up.
Perhaps in HR codebase there's an equality test to SqlServerDialect instead of using |
Maybe... but I don't think so. |
I think @blafond was right. But it's very possible I did something wrong. |
57e020c
to
6fed967
Compare
It seems that now we have a version that passes all the tests (using the latest Vert.x Snapshot). I still have to clean it up and refactor some changes but we should be close. Thank you all! |
Awesome, that's really great news!! |
Cool! In case you missed it, I merged the batch queries support today:
eclipse-vertx/vertx-sql-client#985
… |
Thanks @tsegismont. I will have a look at it shortly |
@tsegismont batching seems to pass the tests fine. Thanks Closing this pr and sending a new one in a bit |
Great news!
… |
Down to 100 test failures