GithubHelp home page GithubHelp logo

Comments (4)

lukaseder avatar lukaseder commented on June 5, 2024

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.

cowwoc avatar cowwoc commented on June 5, 2024

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.

lukaseder avatar lukaseder commented on June 5, 2024

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.

lukaseder avatar lukaseder commented on June 5, 2024

This ticket will be duplicated by #1506 after ticket migration from Trac

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.