 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Thomas Wegner Guest
|
Posted: Sun Apr 18, 2004 9:18 am Post subject: Values from SELECT |
|
|
Hello,
i have a select like this:
SELECT nextval('"seq_plans"') AS seqval FROM "dual"
This select a sequence value from a PostgreSQL Database
and i create the dual table manualy with only one record
(for compatibility to oracle)! Every time when i access the only
one field from the only one record with
SeqValue := FSeqQuery.FieldByName('seqval').AsInteger
i get another value! I opened it only once!!!!!!!!!!!!!!!!!!!!!!!
Whats that??????????????????????????????????????????
Please help!
---------------------------------------------
Thomas Wegner
Cabrio Meter - Das Wetter Plugin für Trillian
http://trillian.wegner24.de/cabriometer
|
|
| Back to top |
|
 |
Thomas Wegner Guest
|
Posted: Sun Apr 18, 2004 9:31 am Post subject: Re: Values from SELECT |
|
|
I found it! I have a debug procedure before i get
the datas from record. They use 2 time DataSet.First
and this updated the value!
---------------------------------------------
Thomas Wegner
Cabrio Meter - The Weather Plugin for Trillian
http://trillian.wegner24.de/cabriometer
"Thomas Wegner" <tomaten (AT) t-online (DOT) de> schrieb im Newsbeitrag
news:408247d9 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello,
i have a select like this:
SELECT nextval('"seq_plans"') AS seqval FROM "dual"
This select a sequence value from a PostgreSQL Database
and i create the dual table manualy with only one record
(for compatibility to oracle)! Every time when i access the only
one field from the only one record with
SeqValue := FSeqQuery.FieldByName('seqval').AsInteger
i get another value! I opened it only once!!!!!!!!!!!!!!!!!!!!!!!
Whats that??????????????????????????????????????????
Please help!
---------------------------------------------
Thomas Wegner
Cabrio Meter - Das Wetter Plugin für Trillian
http://trillian.wegner24.de/cabriometer
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|