Skip to content

Fix expose revert inserting literal 'NULL' string into database#71

Merged
peterjaap merged 1 commit into
mainfrom
fix/expose-revert-null-urls
Apr 7, 2026
Merged

Fix expose revert inserting literal 'NULL' string into database#71
peterjaap merged 1 commit into
mainfrom
fix/expose-revert-null-urls

Conversation

@peterjaap
Copy link
Copy Markdown
Collaborator

MySQL batch mode (-N -B) outputs SQL NULL values as the literal string "NULL". The expose state save captured this string verbatim, and the revert then executed SET value='NULL' instead of SET value=NULL, corrupting base_static_url and base_media_url config entries.

Track NULL values with an IsNull flag on savedConfigRow and generate unquoted NULL in the revert SQL when the original value was NULL.

MySQL batch mode (-N -B) outputs SQL NULL values as the literal string
"NULL". The expose state save captured this string verbatim, and the
revert then executed SET value='NULL' instead of SET value=NULL,
corrupting base_static_url and base_media_url config entries.

Track NULL values with an IsNull flag on savedConfigRow and generate
unquoted NULL in the revert SQL when the original value was NULL.
@peterjaap peterjaap merged commit f9ca8af into main Apr 7, 2026
11 checks passed
@peterjaap peterjaap deleted the fix/expose-revert-null-urls branch April 7, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant