Skip to content

ambigious column name '...' [CORE6544] #6770

Open
@firebird-automations

Description

@firebird-automations

Submitted by: Alexander Muylaert (alexander_gonline.be)

Attachments:
image_2021_04_21T05_29_28_939Z.png

Votes: 1

Hi

We had an accidental performance degrade because of a calculated field that wasn't intended to be used in production. The problem behind it was the SQL that was approved (falsely). It contained an ambiguous column names. It would be magnificent if you could fail on compile time, since this is a very dangerous situation.

In my example, bit T_ADDRESS and T_PROJECT have a field F_PERS_ID and the code I'm showing is the computed by of a calculated field. The second (correct) implementation gives me a correct, fast result, while the first one, returns a full table scan. What it should do... But it would have saved us many stupid hours of debugging if the ambiguous warning would have been thrown. A bit like in MS-SQL.

kind regards

Alexander

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions