Skip to content

Wrong SQLSTATE in case of table alias conflict #8739

@EPluribusUnum

Description

@EPluribusUnum

Hi *!

SELECT *
FROM rdb$database a
JOIN rdb$database b ON a.rdb$relation_id = b.rdb$relation_id
JOIN rdb$database b ON a.rdb$relation_id = b.rdb$relation_id

Undefined name.
Dynamic SQL Error.
SQL error code = -204.
alias B conflicts with an alias in the same statement.

SQLCODE: -204
SQLSTATE: 08001
GDSCODE: 335544569

Because of this org.firebirdsql.jaybird.xca.FatalErrorHelper.isFatal() returns true for this error and closes the Connection.
(FATAL_SQL_STATE_CLASSES / SQLSTATE_CLASS_CONNECTION_ERROR)

FB 3.x, 4.x and 5.x are all affected.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions