Opened 15 years ago

Closed 14 years ago

#552 closed defect (fixed)

Managed StringElement garbles the .net string assigned to it

Reported by: jng Owned by: gregboone
Priority: critical Milestone:
Component: FDO API Version: 3.4.0
Severity: 1 Keywords:
Cc: External ID:

Description

Create a ODBC provider connection to MSTest.mdb in the GenericRdbms unit test directory

Execute an IDescribeSchema with:

SchemaName = "Fdo" ClassNames = { <any table in that database> }

The execution will fail, and the provider will report the following message:

Unable to find class '<table name>'

The only thing here is that <table name> has been somehow garbled by the provider, and I am assuming it is trying to execute under this garbled name.

For example: 'Cities' gets turned into 'ቈܮties' by the provider.

Attachments (1)

Program.cs (2.4 KB ) - added by jng 15 years ago.
C# source demonstrating the problem

Download all attachments as: .zip

Change History (5)

comment:1 by jng, 15 years ago

Component: ODBC ProviderGenericRdbms API

comment:2 by jng, 15 years ago

Priority: majorcritical
Severity: 31

by jng, 15 years ago

Attachment: Program.cs added

C# source demonstrating the problem

comment:3 by jng, 15 years ago

Component: GenericRdbms APIFDO API
Summary: ODBC provider garbles the specified class name when using enhanced IDescribeSchemaManaged StringElement garbles the .net string assigned to it

In writing the attached sample code, I've discovered that the StringElement wrapper class is quite possibly the culprit here.

When you feed a .net string to a new StringElement instance, inspecting the String property (StringElement.String) returns a garbled version of the original string.

comment:4 by jng, 14 years ago

Resolution: fixed
Status: newclosed

Confirmed that this has been resolved in 3.4.1 RC2

Note: See TracTickets for help on using tickets.