Get the Fields Original Name // Alias

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dschuch
Posts: 75
Joined: Thu 05 Feb 2009 15:29
Location: Dresden

Get the Fields Original Name // Alias

Post by dschuch » Wed 03 Jun 2009 23:15

Hy Devart,

is there is a way to get the fields original name?

SELECT
a AS b

-> i want to know in my code if the field is renamed and if possible i need the original name (in this example "a")

thanx.

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

Post by Plash » Thu 04 Jun 2009 07:11

You can use the following code:

Code: Select all

  PgQuery1.GetFieldDesc('Field1').ActualName;

Post Reply