pganalyze / pg_query.rs

Rust library to parse, deparse and normalize SQL queries using the PostgreSQL query parser
MIT License
126 stars 12 forks source link

Truncate on conflict bugfixes #3

Closed lfittl closed 2 years ago

lfittl commented 2 years ago
Truncate: Simplify VALUES(...) lists
Truncate: Correctly handle UPDATE and ON CONFLICT target lists

These target list fields support MultiAssignRef nodes, which are not
supported in regular SELECT target lists - thus requiring special handling.