Skip to content
Prev Previous commit
Next Next commit
Fix missing final statement in parse_sql
  • Loading branch information
dimitri-yatsenko committed Jul 3, 2025
commit 32918e573b398223ed42e15770a7c9f056aca344
2 changes: 2 additions & 0 deletions datajoint/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,5 @@ def parse_sql(filepath):
if line.endswith(delimiter):
yield " ".join(statement)
statement = []
if statement:
yield " ".join(statement)