Unicode Field or Field Alias names?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Unicode Field or Field Alias names?

Post by MarkF » Wed 24 Jun 2009 12:44

I've noticed with the latest build 6.80.0.47 that FieldName seems to return an ansi string (or that an ansi conversion happens somewhere.) I don't remember it doing that in earlier versions (although it's possible that I just didn't notice it.) Should this return a unicode string properly? I'm using OCIUnicode = True btw.

Code: Select all

  OraQuery.SQL.Text := 'select ''αβγδεζηθ1'' from dual';
  OraQuery.Execute;
  for i := 0 to OraQuery.FieldCount - 1 do
    Memo1.Lines.Add(OraQuery.Fields[i].FieldName);
Returns:
'ΑΒΓΔΕΖΗΘ1'
instead of:
αβγδεζηθ1

Thanks for any help!

-Mark

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 24 Jun 2009 12:53

Oracle just converts the field name to upper case.

MarkF
Posts: 211
Joined: Thu 02 Mar 2006 14:55

Post by MarkF » Wed 24 Jun 2009 16:48

Oops! Thanks for pointing that out! I just tested:

select 'αβγδεζηθ1' "αβγδεζηθ1" from dual;

and it works perfectly. Sorry for the false alarm!

-Mark

Post Reply