Skip to content
Discussion options

You must be logged in to vote

Fix is up as #6105, @Alex-e107nl, and it goes in the write path rather than in the download form, so no call site changes.

Three parts to it. A typed write now resolves a null against the column it is going into: a column the table declares NOT NULL takes its own default, and anything else still gets SQL NULL. The connection can answer what that default is, read off the table rather than off a cached definition, because nothing clears that cache when a column is added or altered and a stale answer would have kept this same bug alive on upgraded sites. And insertGetId(), the shorthand this form goes through, no longer forces the untyped path, which is what quietly downgraded fifteen calls …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@Alex-e107nl
Comment options

@Deltik
Comment options

@e107help
Comment options

Answer selected by Deltik
@Alex-e107nl
Comment options

Comment options

You must be logged in to vote
1 reply
@Alex-e107nl
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants