You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Firebird 2.1 - Beta 1 a bugfix was done that prevents that Resultsets with blobs can use DISTINCT.
This was justified because Blobs can't sorted and the classic (IB, FB 1.5.X, FB 2.0) way use the BlobID to build the unique dataset.
This is NOT an improvement because it means you can't build queries that returns an unique datarecord of table N if the query works over an N:M connection. This means for me (Nils Boedeker) and I also assume a lot of other users a lot of problems.
For this purpose using BlobID is absolut correctly. Please restore the Classice style that the BlobID used for sorting if DISTINCT use with a resultset that contains Blobs.
This issue is discussed very well in firebird-devel newslist...
[Firebird-devel] FB 2.1 Beta 1: Datatype needs modification., integers in SQL dialect 3
[Firebird-devel] [FB-Tracker] Created: (CORE1345) No support for BLOB sorting
I check the postings again found a solution that are faster than my
distinct query. But it only runs on FB 2.x and not in 1.5.x. This
solution are posted before by Adriano dos Santos Fernandes:
This query:
-------------------------------------------------------------------------------
Submitted by: Nils Boedeker (nilsboedeker)
Referring to a long discussion:
In Firebird 2.1 - Beta 1 a bugfix was done that prevents that Resultsets with blobs can use DISTINCT.
This was justified because Blobs can't sorted and the classic (IB, FB 1.5.X, FB 2.0) way use the BlobID to build the unique dataset.
This is NOT an improvement because it means you can't build queries that returns an unique datarecord of table N if the query works over an N:M connection. This means for me (Nils Boedeker) and I also assume a lot of other users a lot of problems.
For this purpose using BlobID is absolut correctly. Please restore the Classice style that the BlobID used for sorting if DISTINCT use with a resultset that contains Blobs.
This issue is discussed very well in firebird-devel newslist...
[Firebird-devel] FB 2.1 Beta 1: Datatype needs modification., integers in SQL dialect 3
[Firebird-devel] [FB-Tracker] Created: (CORE1345) No support for BLOB sorting
for further Infos please concact me:
Nils Boedeker
mailto:nilsboedeker@t-online.de
skype: NilsBoedeker
also... if somebody need it... i can give live access to the database structur that are
affected by this problem
with best regards
Nils
The text was updated successfully, but these errors were encountered: