1
0

MSC4140: delayed event content as text, not bytes (#19360)

Store the JSON content of scheduled delayed events as text instead of a
byte array. This brings it in line with the `event_json` table's `json`
column, and fixes the inability to schedule a delayed event with
non-ASCII characters in its content.

Fixes #19242
This commit is contained in:
Andrew Ferrazzutti
2026-01-15 11:05:19 -05:00
committed by GitHub
parent a1e9abc7df
commit 079c52e16b
4 changed files with 85 additions and 7 deletions

View File

@@ -187,6 +187,14 @@ def check_schema_delta(delta_files: list[str], force_colors: bool) -> bool:
sql_lang = "postgres"
if delta_file.endswith(".sqlite"):
sql_lang = "sqlite"
elif delta_file.endswith(".py"):
click.secho(
f"Skipping Python delta file: '{delta_file}'",
fg="yellow",
bold=True,
color=force_colors,
)
return True
statements = sqlglot.parse(delta_contents, read=sql_lang)