Search found 13 matches

by baba
04.01.2010, 20:22
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

@ Wild_Pointer

thanks a million - it works!!!!!!!!!!!!!!!
by baba
04.01.2010, 15:30
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Also I changed the function SQLStrToFloatDef to the one you provided and it works OK
In which File? There is no Function named "SQLStrToFloatDef"
by baba
04.01.2010, 12:58
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

for the first time, i have switched to the LazComp. There works and i needed a Solution for Tuesday. (Tomorrow)

The SQLStrToFloatDef Funktion i will test later, with my Testprogramm.

Thx, and a Happy new Year to all.
by baba
31.12.2009, 17:40
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Wild_Pointer wrote:It seems to be FPC bug.
but the Lazarus-SQL-Comp works fine.
by baba
31.12.2009, 14:36
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

sure, but i find its a good idea, an i can use Skype all the Time and my iPhone ist 24/7 on my Side.
by baba
31.12.2009, 14:18
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

at this Moment, i install skype on my iPhone
by baba
31.12.2009, 14:08
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello

this is my Code:

procedure TForm1.Button2Click(Sender: TObject);
begin
ZConnection1.Connect;

DataSource1.DataSet := ZQuery1;
ZQuery1.SQL.Clear;
ZQuery1.SQL.Add('SELECT fr_prs FROM test.preise');
ZQuery1.Open;

//OK, RESULT: 950

ShowMessage(DecimalSeparator); // IS .
end;
by baba
31.12.2009, 13:54
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

i need a litle help.

There is no "TZPostgreSQLResultSet."


??? TZPostgreSQLResultSet.GetString.
by baba
31.12.2009, 13:46
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

pgAdmin shows 9.50.

I will check it with TZPostgreSQLResultSet.GetString.
by baba
31.12.2009, 13:36
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello,

now i have tested with 8.3 and 8.4 it´s the same. 9.5 -> 950
by baba
30.12.2009, 03:16
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Hello, this is the full create. It´s the same for all Numeric Fields. ----------------------------------------------------------------------- EXAMPLE: preis_01_t character varying(40), // Tip/Hint preis_01_1 numeric(7,2), // Price 1 - 9.50 - in the Grid: 950 preis_01_2 numeric(7,2), // Price 2 preis...
by baba
29.12.2009, 05:08
Forum: 6.6 - stable
Topic: Postgres 8.4 and Decimal
Replies: 30
Views: 3007

Postgres 8.4 and Decimal

Hello,

I read in a DBGrid:
ZEOS: ZQuery1.SQL.Add('SELECT * FROM test.preise');
Decimal(9.50) comes 950 with Format('0,00') comes 950,00

when i use
LAZARUS OWN: SQLQuery1.SQL.Add('SELECT * FROM test.preise');
Decimal(9.50) comes 9,5 Thats OK!

PGAdmin shows 9.5 Thats OK!

What is wrong with ZEOS?
by baba
23.12.2009, 03:46
Forum: 6.6 - stable
Topic: TQuery and Filedsize
Replies: 0
Views: 461

TQuery and Filedsize

Hello, i have a postgres database with field size VARCHAR(32768) in it... if i read from this field with zeosdbo my progy crash... if i change size of this field to size VARCHAR(2048), it's all ok... i'm compiling with Lazarus 0.9.28.2 r22279 FPC 2.2.4 i386-win32-win32/win64 zeosdbo is 6.6.5-stable ...