Subject | Re: Duplicates with LIST function in Fb 2.5.4? |
---|---|
Author | Dmitry Yemanov |
Post date | 2016-01-11T13:31:14Z |
11.01.2016 11:49, Svein Erling Tysvær wrote:
operates with blob ids (that are surely distinct) instead. See:
http://tracker.firebirdsql.org/browse/CORE-1345
http://tracker.firebirdsql.org/browse/CORE-1530
Dmitry
> Hi, I'm puzzled by two queries returning duplicate rows:LIST returns a blob. DISTINCT doesn't work with blobs properly, it
>
> 1)
> SELECT LIST('Hi') FROM RDB$DATABASE
> UNION
> SELECT LIST('Hi') FROM RDB$DATABASE
>
> 2)
> WITH TMP(DuplicateRows) AS
> (SELECT LIST('Hi') FROM RDB$DATABASE
> UNION
> SELECT LIST('Hi') FROM RDB$DATABASE)
> SELECT DISTINCT DuplicateRows
> FROM TMP
operates with blob ids (that are surely distinct) instead. See:
http://tracker.firebirdsql.org/browse/CORE-1345
http://tracker.firebirdsql.org/browse/CORE-1530
Dmitry