Open firebird-automations opened 17 years ago
Submitted by: Kuznetsov Eugene (eugene)
In 3-d dialect
select rdb$database.rdb$relation_id from rdb$database,rdb$database
returns
Undefined name. Dynamic SQL Error. SQL error code = -204. Ambiguous field name between table RDB$DATABASE and table RDB$DATABASE . RDB$RELATION_ID.
But
select rdb$database.* from rdb$database,rdb$database
select rdb$database.* from rdb$database left join rdb$database on 0 = 1 (returns empty dataset)
select rdb$database.* from rdb$database right join rdb$database on 0 = 1 (returns one row)
works.
For two last queries the results may be unsuspected by user.
Best regards, Eugene
Submitted by: Kuznetsov Eugene (eugene)
In 3-d dialect
select rdb$database.rdb$relation_id from rdb$database,rdb$database
returns
Undefined name. Dynamic SQL Error. SQL error code = -204. Ambiguous field name between table RDB$DATABASE and table RDB$DATABASE . RDB$RELATION_ID.
But
select rdb$database.* from rdb$database,rdb$database
select rdb$database.* from rdb$database left join rdb$database on 0 = 1 (returns empty dataset)
select rdb$database.* from rdb$database right join rdb$database on 0 = 1 (returns one row)
works.
For two last queries the results may be unsuspected by user.
Best regards, Eugene