Add support for MySQL's INSERT INTO ... SET syntax (#1641)

This commit is contained in:
Yoav Cohen 2025-01-06 20:13:38 +01:00 committed by GitHub
parent 4c6af0ae4f
commit 8cfc46277f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 43 additions and 20 deletions

View file

@ -119,6 +119,12 @@ fn parse_insert_values() {
verified_stmt("INSERT INTO customer WITH foo AS (SELECT 1) SELECT * FROM foo UNION VALUES (1)");
}
#[test]
fn parse_insert_set() {
let dialects = all_dialects_where(|d| d.supports_insert_set());
dialects.verified_stmt("INSERT INTO tbl1 SET col1 = 1, col2 = 'abc', col3 = current_date()");
}
#[test]
fn parse_replace_into() {
let dialect = PostgreSqlDialect {};