Skip to content

Commit

Permalink
Update oracle.py
Browse files Browse the repository at this point in the history
fix #2262
  • Loading branch information
tonyhu214 authored Aug 24, 2023
1 parent c5cb8f8 commit ff58abb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/engines/oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ def execute_check(self, db_name=None, sql="", close_conn=True):
)
else:
object_name_list.add(object_name)
if result_set["rows"] > 1000:
if result_set["rows"] is not None and result_set["rows"] > 1000:
result = ReviewResult(
id=line,
errlevel=1,
Expand Down Expand Up @@ -892,7 +892,7 @@ def execute_check(self, db_name=None, sql="", close_conn=True):
execute_time=0,
)
else:
if result_set["rows"] > 1000:
if result_set["rows"] is not None and result_set["rows"] > 1000:
result = ReviewResult(
id=line,
errlevel=1,
Expand Down

0 comments on commit ff58abb

Please sign in to comment.