Comments (4)
Thanks for reporting this. In the SQL standard, this is not allowed,
see 7.1 here:
http://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt
But of course, jOOQ should support such deviations from the standard,
if any of the underlying databases support it too. This won't be a
trivial change, though... I'll see what can be done
2012/6/15 cowwoc
[email protected]:
FieldMapsForInsert.isExecutable() returns false if
INSERT INTO foo VALUES ();
is invoked, but this is completely legal for tables containing a single AUTO_INCREMENT field.
Reply to this email directly or view it on GitHub:
#20
from jooq.
Now that you mention it, I don't mind inserting NULL into auto-generated keys (if this is what the standard says I should do) so long as all databases support it.
The hard part was figuring out how to get the desired behavior at all (whether I was using JOOQ or straight JDBC). I just happened to stumble upon VALUES()
before VALUES(NULL)
but it could have easily been the other way. Feel free to not implement this feature (so long as all databases support the alternative).
from jooq.
I'll have to think about this again. This will be tracked as issue #1506:
https://sourceforge.net/apps/trac/jooq/ticket/1506
See also #21 for potential side-effects of this issue
from jooq.
This ticket will be duplicated by #1506 after ticket migration from Trac
from jooq.
Related Issues (20)
- 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
- Hangs after several iterations of a SELECT query that retrieves about 200 items in R2DBC. HOT 1
- Add jakarta.annotation.Generated as possible GeneratedAnnotationType
- Cannot insert varchar[] column value using jooq HOT 2
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- Update using multi-column set clause with DSL.row and custom type logs warn on deprecated static type registry - Merge [#16627]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints HOT 6
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- SQLite "Cannot parse or interpret sql for table" error with both unique columns and foreign key constraints - Merge [#16675]
- Wrong title in manual section "alter-table-drop-foreign-key" HOT 1
- Support Oracle 23ai's DEFAULT ON NULL clauses
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.