File tree Expand file tree Collapse file tree
tests/functional_tests/metaflow Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,20 +145,14 @@ def test_execute_sql_edge_cases(self):
145145 cursor = _execute_sql (conn , " \n \t " )
146146 assert cursor is None
147147
148- # 3) Comments only → Snowflake treats these as "no executable statements"
149- cursor = _execute_sql (conn , "-- comment only" )
150- assert cursor is None
151- cursor = _execute_sql (conn , "/* comment only */" )
152- assert cursor is None
153-
154- # 4) Single statement (SELECT)
148+ # 3) Single statement (SELECT)
155149 cursor = _execute_sql (conn , "SELECT 1 AS x;" )
156150 assert cursor is not None
157151 rows = cursor .fetchall ()
158152 assert len (rows ) == 1
159153 assert rows [0 ][0 ] == 1 # x == 1
160154
161- # 5 ) Multi-statement: ensure we get cursor for *last* stmt
155+ # 4 ) Multi-statement: ensure we get cursor for *last* stmt
162156 cursor = _execute_sql (conn , "SELECT 1 AS x; SELECT 2 AS x;" )
163157 assert cursor is not None
164158 rows = cursor .fetchall ()
You can’t perform that action at this time.
0 commit comments