Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems bug with DISTINCT [CORE1250] #1674

Closed
firebird-automations opened this issue May 8, 2007 · 6 comments
Closed

Seems bug with DISTINCT [CORE1250] #1674

firebird-automations opened this issue May 8, 2007 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Alexander Tyutik (tut)

Try to run next query :

select distinct A.RDB$CONSTRAINT_NAME,
A.RDB$CONSTRAINT_TYPE,
A.RDB$RELATION_NAME,
C.RDB$TRIGGER_SOURCE,
D.RDB$DEPENDED_ON_NAME
from RDB$RELATION_CONSTRAINTS A, RDB$CHECK_CONSTRAINTS B, RDB$TRIGGERS C, RDB$DEPENDENCIES D
order by A.RDB$RELATION_NAME, A.RDB$CONSTRAINT_NAME

and i've got an error:

Unsuccessful execution caused by system error that does not preclude successful execution of subsequent statements.
Datatype BLOB is not supported for sorting operation.

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexander Tyutik (tut)

Here is simplier query:

select distinct RDB$TRIGGER_SOURCE from RDB$TRIGGERS

P.S. RDB$TRIGGER_SOURCE is of type BLOB SUB_TYPE TEXT CHARACTER SET UNICODE_FSS

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

DISTINCT operation is performed using an external sort. As blobs cannot be sorted by, you get the mentioned error. This is by design.

@firebird-automations
Copy link
Collaborator Author

Commented by: Alexander Tyutik (tut)

Maybe it is possible to generate other error with other message for such case?

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Won't Fix [ 2 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12051 ] => Firebird [ 15556 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant