Closed jonrosner closed 9 months ago
I can't reproduce. Can you share a reproducer project on GitHub? Including instructions to setup the database in a container? Thank you
https://github.com/jonrosner/vertx-virtual-test/tree/main
In the readme I wrote how I started the DB
Thanks for providing a complete reproducer.
This doesn't seem to be virtual threads problem: I can see the same errors using the event loop threading model.
On the different issues reported:
trailing junk after numeric literal
error is due to the lack of quotes in the query string: it should be "INSERT INTO users (id, name) VALUES ('%s', '%s')"
instead of "INSERT INTO users (id, name) VALUES (%s, %s)"
; btw, it's safer to avoid string concatenation when building queries, use prepared queries with parameters insteadid
column is of serial
type (integer) and you're trying to insert an UUID in string form
I am trying to use vert.x + postgres using the new virtual threads feature. Unfortunately I cannot get it to work (look at the code below). Note that when I switch to an event-loop model everything works normally.
Things I have already tried:
io.vertx.pgclient.PgException: ERROR: trailing junk after numeric literal at or near "4e0c" (42601)
Version
4.5.1
Do you have a reproducer?
I use the following example code:
I use the following dependencies:
Steps to reproduce
Extra
I use Java 21