Skip to content

Commit

Permalink
use _same_identifier for comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-mchok committed Dec 2, 2024
1 parent c9f090e commit 0af4869
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/snowflake/cli/_plugins/nativeapp/sf_sql_facade.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
to_identifier,
to_quoted_identifier,
to_string_literal,
unquote_identifier,
)
from snowflake.cli.api.sql_execution import BaseSqlExecutor
from snowflake.cli.api.utils.cursor import find_first_row
Expand Down Expand Up @@ -568,8 +567,7 @@ def get_existing_app_info(self, name: str, role: str) -> dict | None:
)

show_obj_row = find_first_row(
show_obj_cursor,
lambda row: row[NAME_COL] == unquote_identifier(name),
show_obj_cursor, lambda row: _same_identifier(row[NAME_COL], name)
)
except Exception as err:
handle_unclassified_error(
Expand Down

0 comments on commit 0af4869

Please sign in to comment.