sqlglot
sqlglot copied to clipboard
ParserError when updating multiple tables (MySQL)
This works
UPDATE
authors
SET
authors.deleted_at = now()
This fails
UPDATE
authors,
books
SET
authors.deleted_at = now(),
books.deleted_at = now()
Error:
sqlglot.errors.ParseError: Invalid expression / Unexpected token. Line 5, Col: 9.
UPDATE
authors,
books
SET
authors.deleted_at = now(),
books.deleted_at = now()