referencesUseNameOfReferencedColumn property

bool referencesUseNameOfReferencedColumn
final

Whether reference columns should use the name of the referenced column as their own name (as opposed to their lexeme).

This typically doesn't make a difference, as references uses the same name as the referenced column. It does make a difference for rowid references though:

CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY);

SELECT rowid FROM foo; -- returns a column named "id"
SELECT * FROM (SELECT rowid FROM foo); -- returns a column named "rowid"
WITH bar AS (SELECT rowid FROM foo) SELECT * FROM bar; -- again, "rowid"

As the example shows, references don't take the name of their referenced column in subqueries or CTEs.

Implementation

final bool referencesUseNameOfReferencedColumn;