BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Values from SELECT

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Thomas Wegner
Guest





PostPosted: Sun Apr 18, 2004 9:18 am    Post subject: Values from SELECT Reply with 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
Thomas Wegner
Guest





PostPosted: Sun Apr 18, 2004 9:31 am    Post subject: Re: Values from SELECT Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.