You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is insert with null value generate wrong sql query ? #767
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Hello @schauder
Sorry for the late
Honestly, I do not know if DEFAULT should be used for another thing than the ID field
But I can see :
-DEFAULT is working on all nullable fields: INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);
-The generated sql request should have 2 parameters, not one: INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT)
So the sql error is about the number of parameters
Activity
schauder commentedon Jul 18, 2022
Why should it create two
DEFAULTentries?DEFAULTshould only be used for id columns, shouldn't it?spring-projects-issues commentedon Jul 25, 2022
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
mmaryo commentedon Jul 26, 2022
Hello @schauder
Sorry for the late
Honestly, I do not know if DEFAULT should be used for another thing than the ID field
But I can see :
-DEFAULT is working on all nullable fields:
INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);-The generated sql request should have 2 parameters, not one:
INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT)So the sql error is about the number of parameters
What do you think?
mshima commentedon Sep 8, 2026
MySqlDialect has a very similar issue.