Skip to content

Commit

Permalink
Add breaking change analysis
Browse files Browse the repository at this point in the history
Signed-off-by: popcorny <[email protected]>
  • Loading branch information
popcornylu committed Jan 13, 2025
1 parent 6032320 commit fa67ade
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions recce/util/breaking.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def is_breaking_change(original_sql, modified_sql, dialet=None):
def is_breaking_change(original_sql, modified_sql, dialect=None):
if original_sql == modified_sql:
return False

Expand All @@ -10,8 +10,8 @@ def is_breaking_change(original_sql, modified_sql, dialet=None):
return True

try:
original_ast = parse_one(original_sql, dialect=dialet)
modified_ast = parse_one(modified_sql, dialet=dialet)
original_ast = parse_one(original_sql, dialect=dialect)
modified_ast = parse_one(modified_sql, dialect=dialect)
except Exception:
return True

Expand Down

0 comments on commit fa67ade

Please sign in to comment.