final class InsertFacts
Restricted visibility: declared "@visibility SqlSemantics\Platform\PostgreSql". Code outside that scope must not name this declaration.

Derives the facts of an INSERT statement.

Rule: PG-INSERT-001. The common tables and the target follow PG-MODIFICATION-SCOPE-001; the columns follow PG-ASSIGNMENT-001. The VALUES rows and the query see the common tables, not the target. Every VALUES row must have as many values as the first. With a column list, each row must supply one value per column; without one, at most one value per column of the table, the rest taking their defaults; more or fewer are reported when both counts are known. Each value of a VALUES row is assigned to its column on its own (PG-ASSIGNMENT-CAST-001); an output column of the query is checked the same way unless it is of a string type, which a string constant of the query also has. The conflict target sees the target only; DO UPDATE and its condition see the target and, under the name excluded, the row proposed for insertion, each qualifying the same columns, so an unqualified column of both is ambiguous; DO UPDATE without a conflict target is reported. RETURNING sees the target. A generated column takes DEFAULT only (PG-GENERATED-WRITE-001). Source: https://www.postgresql.org/docs/17/sql-insert.html, https://www.postgresql.org/docs/17/sql-insert.html#SQL-ON-CONFLICT. Status: Implemented.

Methods§

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Instantiated in 4
Method calls 5