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 General > SQL error
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 15328 of 17602
Post > Topic >>

SQL error

by xanaruto@[EMAIL PROTECTED] ("x asasaxax") Apr 19, 2008 at 11:47 AM

------=_Part_2003_18856615.1208616439809
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

HI everyone,


I=B4m trying to capture all the possible errors that a statement can have.
And, if there=B4s any error i will do a rollback; What i=B4m trying to do
i=
ts:
BEGIN
  insert into temp values(1, 2, 3);
  IF ANY_ERROR_OCCURED THEN
     ROLLBACK;
     RETURN FALSE;
  END IF;
END;

Did anyone knows how can i do that?

Thanks a lot!

------=_Part_2003_18856615.1208616439809
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

HI everyone,<br><br><br>I=B4m trying to capture all the possible errors
tha=
t a statement can have. And, if there=B4s any error i will do a rollback;
W=
hat i=B4m trying to do its:<br>BEGIN<br>&nbsp; insert into temp values(1,
2=
, 3);<br>
&nbsp; IF ANY_ERROR_OCCURED THEN<br>&nbsp;&nbsp;&nbsp;&nbsp;
ROLLBACK;<br>&=
nbsp; &nbsp;&nbsp; RETURN FALSE;<br>&nbsp; END IF;<br>END;<br><br>Did
anyon=
e knows how can i do that?<br><br>Thanks a lot! <br>

------=_Part_2003_18856615.1208616439809--
 




 4 Posts in Topic:
SQL error
xanaruto@[EMAIL PROTECTED  2008-04-19 11:47:19 
Re: SQL error
kleptog@[EMAIL PROTECTED]  2008-04-19 17:07:23 
Re: SQL error
craig@[EMAIL PROTECTED]   2008-04-19 23:08:06 
Re: SQL error
craig@[EMAIL PROTECTED]   2008-04-19 23:17:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Mon Dec 1 19:37:46 CST 2008.