Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > currval of sequ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3443 of 3599
Post > Topic >>

currval of sequence "my_seq" is not yet defined in this session

by nacef.l@[EMAIL PROTECTED] ("Nacef LABIDI") Apr 29, 2008 at 12:33 AM

------=_Part_6447_25086152.1209422024794
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,

I am writing some code to get the current value of a sequence using the
currval function to use this value in a following insert on another table.
But I am having this message "currval of sequence "my_seq" is not yet
defined in this session".

Can someone explain me what is the problem with that and by the way
explain
me the definition of a session in postgres.

I have tried to avoid he problem using a stocked function and a trigger
but
I really want to avoid using triggers for debugging issues.

Thanks to all

Nacef

------=_Part_6447_25086152.1209422024794
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi all,<br><br>I am writing some code to get the current value of a
sequence using the currval function to use this value in a following
insert on another table. But I am having this message &quot;currval of
sequence &quot;my_seq&quot; is not yet defined in this session&quot;.<br>
<br>Can someone explain me what is the problem with that and by the way
explain me the definition of a session in postgres.<br><br>I have tried to
avoid he problem using a stocked function and a trigger but I really want
to avoid using triggers for debugging issues.<br>
<br>Thanks to all<br><br>Nacef<br>

------=_Part_6447_25086152.1209422024794--
 




 2 Posts in Topic:
currval of sequence "my_seq" is not yet defined in this session
nacef.l@[EMAIL PROTECTED]  2008-04-29 00:33:44 
Re: currval of sequence "my_seq" is not yet defined in this sess
scott.marlowe@[EMAIL PROT  2008-04-28 20:22:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 12:32:07 CDT 2008.