sql icon indicating copy to clipboard operation
sql copied to clipboard

Error parsing expressions containing ROWID column reference

Open ivan4th opened this issue 6 months ago • 0 comments

ROWID column reference is not handled correctly.

func TestRowID(t *testing.T) {
	_, err := sql.NewParser(strings.NewReader("select max(rowid) from foo")).ParseStatement()
	if err != nil {
		t.Fatalf("can't parse rowid: %v", err)
	}
}

==>

    sql_test.go:17: can't parse rowid: 1:12: expected expression, found 'ROWID'

ivan4th avatar Aug 25 '24 01:08 ivan4th