Icon View Incident Report

Minor Minor
Reported By: Terry Swiers
Reported On: 6/28/2011
For: Version 2.05 Build 9
# 3475 Importing Comma-Delimited Text Files with Missing Last CRLF Can Cause AV

Using the following script to import the attached tab delimited text file that is missing the last CRLF, the import call throws a AV.

SCRIPT
BEGIN
   DECLARE TableCheckCursor CURSOR for TableCheck;
 
-- Create the work table after first checking for and dropping it if it exists
  PREPARE TableCheck FROM '
     Select * From information.TemporaryTables Where Name = ?
  ';
 
  BEGIN
    OPEN TableCheckCursor using 'UTBidImport';
    IF RowCount(TableCheckCursor) > 0 then
      EXECUTE IMMEDIATE 'Drop Table UTBidImport';
    END IF;
    CLOSE TableCheckCursor;
   EXCEPTION
  END;
 
  EXECUTE IMMEDIATE '
      Create Temporary Table "UTBidImport" (
      "BidGUID" VARCHAR(38) COLLATE "UNI" DEFAULT ''{8470740F-5D17-41EF-8709-ABC583D597C7}'',
      "StockCode" VARCHAR(20) COLLATE "UNI",
      "Amount" INTEGER DEFAULT 0
      )
  ';
 
-- Load the work table from the text    file
  EXECUTE IMMEDIATE '
      Import Table UTBidImport from "UTBidPrice.txt" In Store "Temp" (StockCode, Amount) Delimiter Char #9
  ';
 
END



Resolution Resolution
Fixed Problem on 6/29/2011 in version 2.05 build 10


Products Affected Products Affected
ElevateDB Additional Software and Utilities
ElevateDB DAC Client-Server
ElevateDB DAC Client-Server with Source
ElevateDB DAC Standard
ElevateDB DAC Standard with Source
ElevateDB DAC Trial
ElevateDB LCL Standard with Source
ElevateDB PHP Standard
ElevateDB PHP Standard with Source
ElevateDB PHP Trial
ElevateDB VCL Client-Server
ElevateDB VCL Client-Server with Source
ElevateDB VCL Standard
ElevateDB VCL Standard with Source
ElevateDB VCL Trial

Image