<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>《存储过程中的简单事务处理 &#8211; MySQL邯郸学步》的评论</title>
	<atom:link href="http://mifunny.info/simple-transaction-in-procedure-289.html/feed" rel="self" type="application/rss+xml" />
	<link>http://mifunny.info/simple-transaction-in-procedure-289.html</link>
	<description>走走停停看看，恍然大悟。</description>
	<lastBuildDate>Tue, 31 Jan 2012 00:46:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>FI</title>
		<link>http://mifunny.info/simple-transaction-in-procedure-289.html/comment-page-1#comment-6180</link>
		<dc:creator>FI</dc:creator>
		<pubDate>Fri, 06 Jan 2012 09:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://mifunny.info/?p=289#comment-6180</guid>
		<description>博主您好：
想请教您个问题：怎样在程序中得知存储过程发生了回滚？
在存储过程中使用了事务，分两个语句插入两张表，要的效果是如果发生异常，就回滚。
现在的问题是：能正常回滚，但是不知道怎么在程序中判断。

在存储过程中定义了Handler：DECLARE CONTINUE HANDLER FOR SQLEXCEPTION ROLLBACK; 程序里面的try catch捕获不到异常，我认为是因为异常已经在存储处理了。

最好能不用输出参数。

先谢谢了~</description>
		<content:encoded><![CDATA[<p>博主您好：<br />
想请教您个问题：怎样在程序中得知存储过程发生了回滚？<br />
在存储过程中使用了事务，分两个语句插入两张表，要的效果是如果发生异常，就回滚。<br />
现在的问题是：能正常回滚，但是不知道怎么在程序中判断。</p>
<p>在存储过程中定义了Handler：DECLARE CONTINUE HANDLER FOR SQLEXCEPTION ROLLBACK; 程序里面的try catch捕获不到异常，我认为是因为异常已经在存储处理了。</p>
<p>最好能不用输出参数。</p>
<p>先谢谢了~</p>
]]></content:encoded>
	</item>
</channel>
</rss>

