numeric field and PGLoader.fieldtype

Discussion of open issues, suggestions and bugs regarding PgDAC (PostgreSQL Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

numeric field and PGLoader.fieldtype

Post by piopio1 » Thu 19 Sep 2013 23:30

Hello,

Which is the correct PGLoader.FieldType for a numeric(16,2) field in a PostgreSQL table ?

I tried ftcurrency and ftfloat but none of these work.


Many thanks
Pio Pio

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: numeric field and PGLoader.fieldtype

Post by DemetrionQ » Fri 20 Sep 2013 14:53

Hello.

Thank you for the information. We have reproduced the problem and are investigating it. We will inform you as soon as we have any results.

piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Re: numeric field and PGLoader.fieldtype

Post by piopio1 » Fri 20 Sep 2013 14:56

Hello,

Is there any workaround, in the meantime ?

Thanks
Pio Pio

DemetrionQ
Devart Team
Posts: 271
Joined: Wed 23 Jan 2013 11:21

Re: numeric field and PGLoader.fieldtype

Post by DemetrionQ » Fri 20 Sep 2013 16:24

As a workaround, you can create all columns automatically using TPgLoader.CreateColumns method.

piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Re: numeric field and PGLoader.fieldtype

Post by piopio1 » Fri 20 Sep 2013 18:03

DemetrionQ wrote:As a workaround, you can create all columns automatically using TPgLoader.CreateColumns method.
I tried both, design time and runtime, but no joy, any other advice ?

Thanks
Pio Pio

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: numeric field and PGLoader.fieldtype

Post by AlexP » Tue 24 Sep 2013 09:05

Hello,

We have already fixed the problem, the fix will be included to the next version of PgDAC

piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Re: numeric field and PGLoader.fieldtype

Post by piopio1 » Tue 24 Sep 2013 13:35

AlexP wrote:Hello,

We have already fixed the problem, the fix will be included to the next version of PgDAC
Is there any workaround in the meantime ?

Thanks
Pio Pio

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: numeric field and PGLoader.fieldtype

Post by AlexP » Wed 25 Sep 2013 10:32

Hello,

You can modify the column type at both design-time - in the PgLoader column editor - and run-time:

Code: Select all

  PgLoader1.CreateColumns;
  PgLoader1.Columns.FieldType := ftXXXX;

piopio1
Posts: 32
Joined: Thu 10 Jan 2013 23:13

Re: numeric field and PGLoader.fieldtype

Post by piopio1 » Fri 27 Sep 2013 22:09

AlexP wrote:Hello,

You can modify the column type at both design-time - in the PgLoader column editor - and run-time:

Code: Select all

  PgLoader1.CreateColumns;
  PgLoader1.Columns.FieldType := ftXXXX;
sorry but I cannot fine any ftXXXX among the values in PgLoader1.Columns.FieldType

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: numeric field and PGLoader.fieldtype

Post by AlexP » Tue 01 Oct 2013 09:11

Hello,

The field types are declared in the DB module, i.e.:

Code: Select all

uses ..., DB;
...
  PgLoader1.Columns[0].FieldType := ftFloat;
  PgLoader1.Columns[1].FieldType := ftInteger;
...

Post Reply