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 Novice > Re: Stopping a ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3173 of 3255
Post > Topic >>

Re: Stopping a transaction as soon as an error occurs

by ridvan@[EMAIL PROTECTED] ("Ridvan Lakas ng Bayan S. Baluyos") Jul 21, 2008 at 09:30 AM

------=_Part_37430_11786057.1216603834996
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Thu, Jul 17, 2008 at 7:36 PM, John DeSoi <desoi@[EMAIL PROTECTED]
> wrote:

> Put this at the stop of your file to make psql stop when an error
occurs:
>
> \set ON_ERROR_STOP 1
>


Thanks for this! This is basically what I need!


Ridvan

-- 
Bill Cosby  - "Advertising is the most fun you can have with your clothes
on."

------=_Part_37430_11786057.1216603834996
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">On Thu, Jul 17, 2008 at 7:36 PM, John DeSoi &lt;<a
href="mailto:desoi@[EMAIL PROTECTED]
">desoi@[EMAIL PROTECTED]
>&gt; wrote:<br><div
class="gmail_quote"><blockquote class="gmail_quote" style="border-left:
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">

Put this at the stop of your file to make psql stop when an error
occurs:<br>
<br>
\set ON_ERROR_STOP 1<font color="#888888"><br>
</font></blockquote></div><br><br clear="all">Thanks for this! This is
basically what I need!<br><br><br>Ridvan<br><br>-- <br>Bill Cosby &nbsp;-
&quot;Advertising is the most fun you can have with your clothes on.&quot;
</div>

------=_Part_37430_11786057.1216603834996--
 




 3 Posts in Topic:
Stopping a transaction as soon as an error occurs
ridvan@[EMAIL PROTECTED]   2008-07-17 12:49:17 
Re: Stopping a transaction as soon as an error occurs
desoi@[EMAIL PROTECTED]   2008-07-17 07:36:23 
Re: Stopping a transaction as soon as an error occurs
ridvan@[EMAIL PROTECTED]   2008-07-21 09:30:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Oct 12 9:43:28 CDT 2008.