From bf0c2905ef7c3f64a0a265aab6a2a56c9808e6bf Mon Sep 17 00:00:00 2001 From: samsik Date: Sat, 10 Oct 2026 10:13:24 +0300 Subject: [PATCH] Fix generate_series argument types in the history explain script. PostgreSQL treated the bounds as smallint and could not choose an overload. Co-authored-by: Cursor --- src/explain_history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/explain_history.py b/src/explain_history.py index 611831d2..18c1ef65 100644 --- a/src/explain_history.py +++ b/src/explain_history.py @@ -55,7 +55,7 @@ def main() -> None: """ INSERT INTO messages (id, chat_id, sender_id, text, created_at) SELECT gen_random_uuid(), %s, %s, 'm', %s + (g || ' seconds')::interval - FROM generate_series(%s, %s) AS g + FROM generate_series(%s::bigint, %s::bigint) AS g """, (chat_id, user_id, START, count + 1, 10000), )