Comments (7)
Hmm, the integration tests don't explicitly cover routines. This worked before, but there's probably a regression that has been introduced with version 1.6.8:
https://sourceforge.net/apps/trac/jooq/ticket/852
Can you provide me with an example of how you're using routines with schema mappings? Are you calling them as standalone routines or embedded in SQL?
Cheers
Lukas
from jooq.
This is filed as Trac ticket #995
https://sourceforge.net/apps/trac/jooq/ticket/995
from jooq.
We're calling them embedded in SQL by composing them in as Field, in this case. I traced into the Routine class and couldn't see anywhere to supply a Configuration, except in the usage where it actually calls the function in the DB and returns a value.
from jooq.
Hmm, yes. The bug is here:
https://github.com/lukaseder/jOOQ/blob/ee409d83fbdbd0401f37926967b027937167134e/jOOQ/src/main/java/org/jooq/impl/AbstractRoutine.java#L540
The schema name is hard-wired in the routine's Field representation at SQL build time, not at SQL render time. Unfortunately, at SQL build time, the SchemaMapping is not available.
A workaround that might work for you before I fix this, is to replace the call to getQualifiedName() by getName() and omit the schema?
Are you using jOOQ 2.0 or 1.x?
from jooq.
We're using jOOQ 2.0.0-SNAPSHOT.
We have a work-around right now, which is simply to create a database with only the function in it so that jOOQ finds it where expected.
Thanks!
from jooq.
This issue is fixed on SVN Trunk, SVN 1.x branch, Github and will be included in the next 2.0.1-SNAPSHOT
from jooq.
Awesome, thank you.
from jooq.
Related Issues (20)
- BlobBinding and ClobBinding should fall back to byte[] and String binding also in HANA - Merge [#16646]
- Add HanaDatabase queries to MetaSQL in order to look up certain objects via DSLContext.meta()
- Add Row2.contains(Row2) HOT 1
- Generated sequences shouldn't be typed BIGINT by default, if MAXVALUE is larger than Long.MAX_VALUE
- TableRecords should refresh() themselves for HANA dialect, when any non-identity value should be fetched after an insert HOT 1
- TableRecords should refresh() themselves for HANA dialect, when any non-identity value should be fetched after an insert - Merge [#16651]
- TableRecords should refresh() themselves for HANA dialect, when any non-identity value should be fetched after an insert - Merge [#16651]
- TableRecords should refresh() themselves for HANA dialect, when any non-identity value should be fetched after an insert - Merge [#16651]
- Missing configuration in Multiset HOT 1
- Improve warning log message about static type registry usage and how to remedy it HOT 1
- Improve warning log message about static type registry usage and how to remedy it - Merge [#16656]
- Dialect is set as null in AbstractField.cast HOT 1
- containsIgnoreCase() behaviour change (maybe regression) HOT 10
- Getting "constructor cannot be applied to given types" error in generated records with an associative array HOT 2
- Wrong source code generated when newline escape sequence of long view source is split into two HOT 3
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Wrong source code generated when newline escape sequence of long view source is split into two - Merge [#16662]
- Add SQLite support for GROUP_CONCAT(DISTINCT ..) HOT 1
- Generate DAO.fetchOneByXYZ for unique columns missing with SQLite HOT 6
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.