Ticket #4456 (closed defect: invalid)

Opened 16 months ago

Last modified 16 months ago

GetFieldAsString() does not return entire string

Reported by: rhaden Owned by: tamas
Priority: high Milestone:
Component: default Version: 1.8.0
Severity: critical Keywords: GetFieldAsString CSharp
Cc:

Description

The GetFieldAsString?() method seems to truncate the returned string to 75 characters or fewer. This behavior is at least present in the C# bindings for GDAL - I'm not sure if it's present in the native library.

I've attached test data which illustrates the issue. It's a Microsoft Access database with ESRI Personal Geodatabase formatting. There's an additional table called BinaryRecords? which contains two fields: an ID field and a field called BinaryData? which is of type "OLE Object" (Access' equivalent to a BLOB). The table contains three records, each of which has a 1024-byte-long value in the BinaryData? column.

Attachments

test.mdb Download (0.6 MB) - added by rhaden 16 months ago.

Change History

Changed 16 months ago by rhaden

Changed 16 months ago by rhaden

  • owner changed from warmerdam to tamas

Changed 16 months ago by rouault

  • status changed from new to closed
  • resolution set to invalid

GetFieldAsString?() in the native library only returns a maximum of 80 characters for non-string fields. So this is expected. I'm closing this ticket since #4457 asks for GetFieldAsBinary?() which is the right thing to do here.

Note: See TracTickets for help on using tickets.