Skip to content

Commit

Permalink
to remove dual in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Jun 30, 2023
1 parent 51db165 commit e4af376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PandaPkgInfo.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
release_version = "0.0.62"
release_version = "0.0.63"
2 changes: 2 additions & 0 deletions pandaserver/taskbuffer/WrappedCursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def convert_query_in_printf_format(sql, var_dict, sql_conv_map):
sql = re.sub(r'\(SELECT\s+level\s+FROM\s+dual\s+CONNECT\s+BY\s+level\s*<=\s*(:[^ \)]+)\)*',
r'GENERATE_SERIES(1,\1)',
sql, flags=re.IGNORECASE)
# dual
sql = re.sub(r"FROM dual", "", sql, flags=re.IGNORECASE)
# json
if '/* use_json_type */' in sql:
# remove \n to make regexp easier
Expand Down

0 comments on commit e4af376

Please sign in to comment.