FirebirdSQL / firebird-documentation

Firebird documentation
https://www.firebirdsql.org/en/firebird-rdbms/
34 stars 14 forks source link

Wrong alias in MERGE example (Release notes) #187

Closed MartinKoeditz closed 11 months ago

MartinKoeditz commented 11 months ago

I think there is an error in the example of section Support for WHEN NOT MATCHED BY SOURCE in the MERGE statement

MERGE
    INTO customers c
    USING new_customers nc
    ON (c.id = nc.id)
    WHEN MATCHED THEN
        UPDATE SET  name = cd.name
    WHEN NOT MATCHED BY SOURCE THEN
        DELETE

The alias in UPDATE SET name = cd.name is wrong, isn't it?

Ref: FB 5.0 Relase Notes

mrotteveel commented 11 months ago

Yes, looks like a typo. I'll fix it. Thanks.