Giter Club home page Giter Club logo

Comments (3)

lukaseder avatar lukaseder commented on September 27, 2024

Thanks for your message.

But how are you using jOOQ? I don't see why the $ prefix is important to you. You're not using R2DBC, I take? Nor the parser?

Can you show an example of a jOOQ query that doesn't work for you, and how you execute/parse/use it, etc.?

from jooq.

EMIR1HUB avatar EMIR1HUB commented on September 27, 2024

I submitted queries in PL/pgSQL format, but I decided to use a simple query in the format of
SELECT country_id FROM country WHERE name = $1.

which is passed to the method along with an array of parameters

int affectedRows = dsl.query(parameters.getSql(), parameters.getSqlParameters()).execute();

at the moment of entering the query method it throws the error “parameter $1 does not exist”, but when I use :1 the data is substituted as it should be. You are right I don't use R2DBC.

from jooq.

lukaseder avatar lukaseder commented on September 27, 2024

Ah, I see what you're trying to do. jOOQ's plain SQL templates don't support alternative named parameter prefixes yet, see:

There's currently no workaround for this. I hope this helps.

from jooq.

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.