Comments (3)
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.
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.
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)
- Error when running SQL Server query with UNIONs with LIMIT in their subqueries and unnamed columns HOT 1
- Remove TERADATA support for CREATE MATERIALIZED VIEW HOT 1
- Remove TERADATA support for CREATE MATERIALIZED VIEW - Merge [#16963]
- org.jooq.impl.Alias not Serializable, due to Lambda wrapInParantheses HOT 6
- org.jooq.impl.Alias not Serializable, due to Lambda wrapInParantheses - Merge [#16965]
- org.jooq.impl.Alias not Serializable, due to Lambda wrapInParantheses - Merge [#16965]
- Force inline bind values after 2536 in Teradata HOT 1
- Force inline bind values after 2536 in Teradata - Merge [#16968]
- Force inline bind values after 2536 in Teradata - Merge [#16968]
- Force inline bind values after 2536 in Teradata - Merge [#16968]
- Disable timestamp precision in codegenerator HOT 3
- Get Teradata dialect up to date
- Enable isUnnamed flag in code generator HOT 1
- Add support for SAP HANA SMALLDECIMAL data types HOT 6
- SAP HANA TINYINT is represented as Byte with wrong value HOT 9
- Work around regression in MariaDB JDBC driver 3.4.0 HOT 3
- DSL.row error with custom converter
- Exception when doing Meta.ddl() export with tables that have USE or GO or similar field or table aliases HOT 5
- Mapping annotations @OneToOne, @OneToMany, @ManyToMany support in Generated POJOS. HOT 3
- Count for query HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jooq.