Skip to content

Commit c3258bc

Browse files
committed
Merge the COPY source fix from #144
2 parents ca46f6a + a9d9407 commit c3258bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crates/sqlquack-syntax/src/parser/_helpers/ddl/scripting.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ impl Parser {
839839
};
840840

841841
let files = self.parse_copy_files(has_to, kind)?;
842-
if (kind || has_to) && files.is_empty() {
842+
if (kind || has_to) && files.is_empty() && self.applies_snowflake_context_rules() {
843843
return Err(self.parse_error("Expected a table, query or location after FROM or TO"));
844844
}
845845

0 commit comments

Comments
 (0)