Skip to content

rowid treated as ambiguous when user-defined rowid column exists in JOIN #5560

@Pavan-Nambi

Description

@Pavan-Nambi
turso> CREATE TABLE a(x TEXT);
CREATE TABLE b(rowid TEXT);
INSERT INTO a VALUES('sku1');
INSERT INTO b VALUES('sku1');
SELECT rowid FROM a JOIN b ON a.x = b.rowid;

  x Parse error: ROWID is ambiguous

turso>

Originally posted by @Pavan-Nambi in #3698

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions