@@ -822,6 +822,10 @@ def test_execute_command_forwards_row_limit(row_limit):
822822 ("PUT '/tmp/files/input' INTO '/Volumes/c/s/v/input'" , True ),
823823 ("GET '/Volumes/c/s/v/input' TO '/tmp/files/output'" , True ),
824824 ("/* download */ GET '/Volumes/c/s/v/input' TO '/tmp/files/output'" , True ),
825+ (
826+ "/* outer /* inner */ outer */ GET '/Volumes/c/s/v/input' TO '/tmp/files/output'" ,
827+ True ,
828+ ),
825829 ("REMOVE '/Volumes/c/s/v/input'" , False ),
826830 ("SELECT 1" , False ),
827831 ],
@@ -918,6 +922,9 @@ def execute():
918922 ("-- upload the file\n PUT '/f' INTO '/v'" , "PUT" ),
919923 ("/* staging */ PUT '/f' INTO '/v'" , "PUT" ),
920924 ("/* c1 */\n -- c2\n get '/v' to '/f'" , "GET" ),
925+ ("/* outer /* inner */ outer */ PUT '/f' INTO '/v'" , "PUT" ),
926+ ("/* a /* b /* c */ b */ a */ GET '/v' TO '/f'" , "GET" ),
927+ ("/* outer /* closed */ PUT '/f' INTO '/v'" , None ),
921928 (" \n \t PUT '/f' INTO '/v'" , "PUT" ),
922929 ("SELECT 'GET' AS x" , None ),
923930 ("SELECT * FROM puts" , None ),
@@ -944,6 +951,7 @@ def test_staging_verb_matches_only_the_leading_statement(operation, expected):
944951 "PUT '__input_stream__'INTO '/Volumes/c/s/v/file'" ,
945952 'PUT"__input_stream__"INTO "/Volumes/c/s/v/file"' ,
946953 "/* upload */ PUT '__input_stream__' INTO '/Volumes/c/s/v/file'" ,
954+ "/* outer /* inner */ outer */ PUT '__input_stream__' INTO '/Volumes/c/s/v/file'" ,
947955 "PUT'__input_stream__' INTO '/Volumes/c/s/v/file'" ,
948956 "/* upload */ PUT\" __input_stream__\" INTO '/Volumes/c/s/v/file'" ,
949957 ],
0 commit comments