Icon View Incident Report

Serious Serious
Reported By: Adam Hair
Reported On: 1/2/2020
For: Version 4.48 Build 7
# 4786 CASTing BLOBs to VARCHARs Causes Incorrect Record Values in Result Set

I've just noticed an issue when performing a query that casts a blob field as a varchar where it seems to be repeating values from previous records.

With the attached table when I perform the below query I get the following result:

22436,"FormSetup","cbEmailWhitelist","GLOBAL",,"amanda.bortone@viterra.com"
22437,"FormSetup","cxPITreatSentListasProcessedTk","GLOBAL",,"0manda.bortone@viterra.com"
22438,"FormSetup","cxPIAutoSendShipmentAppropriationOnFinish","GLOBAL",,"0manda.bortone@viterra.com"
22439,"FormSetup","cbCheckCAN","GLOBAL",,"-1anda.bortone@viterra.com"
22440,"FormSetup","cbCheckContainer","GLOBAL",,"01anda.bortone@viterra.com"

If I export Record 22440 - I only get '0' in the exported file. It seems as though when performing a cast like this, it's not clearing the expression from the previous record.

SELECT *, cast(Valuefield as varchar(50))
from _A1



Comments Comments
The issue was with casting BLOBs to VARCHARs, in general. Our apologies to Adam for the long delay in getting this fixed - the original email was lost and then recently re-found.


Resolution Resolution
Fixed Problem on 10/18/2020 in version 4.49 build 2


Products Affected Products Affected
DBISAM Additional Software and Utilities
DBISAM ODBC Client-Server
DBISAM ODBC Client-Server with Source
DBISAM ODBC Standard
DBISAM ODBC Standard with Source
DBISAM ODBC Trial
DBISAM VCL Client-Server
DBISAM VCL Client-Server with Source
DBISAM VCL Standard
DBISAM VCL Standard with Source
DBISAM VCL Trial

Image