Giter Club home page Giter Club logo

Comments (3)

tsegismont avatar tsegismont commented on June 8, 2024

I can't reproduce. Can you share a reproducer project on GitHub? Including instructions to setup the database in a container? Thank you

from vertx-sql-client.

jonrosner avatar jonrosner commented on June 8, 2024

https://github.com/jonrosner/vertx-virtual-test/tree/main

In the readme I wrote how I started the DB

from vertx-sql-client.

tsegismont avatar tsegismont commented on June 8, 2024

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:

  • Vert.x Pg Client does not bring the dependency for SASL SCRAM-SHA-256 authentication, you need to add it yourself
  • The 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 instead
  • after adding quotes around the parameters, there is another problem: the table structure: the id column is of serial type (integer) and you're trying to insert an UUID in string form

from vertx-sql-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.