Varchar2 - Oracle

Issue #190 closed
Rodrigo Farias Rezino created an issue

While using varchar2 in Oracle, I do get a conversion error on the function

TAbstractSession.TRowMapperInternal.SetEntityFromColumns

on line

value := value.ConvertTo(columnData.Member.MemberType.Handle);

It's probably because it's a variant type, and the type in database is varchar2 but the content is a number. I think he is trying to use it as a integer instead of varchar2.

My entity has this property:

[Column('TRANSLATIONIDENTIFIER', [], 40, 'hash id used to send as unique identificator to external translator')]
    property TranslationIdentifier: string read FTranslationIdentifier;

Some hint ?

Comments (3)

  1. Rodrigo Farias Rezino reporter

    It was not a but, the property was not with the right access. Maybe the error message could be cleaner

  2. Stefan Glienke repo owner

    The error you reported does not seem to fit with what you explained in your resolution. As you can see in the line you posted it converts the value read from the DB to the type of the property. Only after that it tries to set it which will fail for a read only property with an EPropReadOnly exception.

  3. Log in to comment