<?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"
	>
<channel>
	<title>Comments on: MySQL Triggers: How do you abort an INSERT, UPDATE or DELETE with a trigger?</title>
	<atom:link href="http://www.brokenbuild.com/blog/2006/08/15/mysql-triggers-how-do-you-abort-an-insert-update-or-delete-with-a-trigger/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brokenbuild.com/blog/2006/08/15/mysql-triggers-how-do-you-abort-an-insert-update-or-delete-with-a-trigger/</link>
	<description>Databases, code and all things agile.</description>
	<pubDate>Thu, 18 Mar 2010 11:47:18 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Liam</title>
		<link>http://www.brokenbuild.com/blog/2006/08/15/mysql-triggers-how-do-you-abort-an-insert-update-or-delete-with-a-trigger/#comment-62841</link>
		<dc:creator>Liam</dc:creator>
		<pubDate>Tue, 22 Apr 2008 06:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.brokenbuild.com/blog/2006/08/15/mysql-triggers-how-do-you-abort-an-insert-update-or-delete-with-a-trigger/#comment-62841</guid>
		<description>&lt;p&gt;Thanks for the assist; coming from PostgreSQL, MySQL triggers and functions seem like a hell of a mess...&lt;/p&gt;

&lt;p&gt;I would say it's the best place to enforce business rules if you want consistent data.  There might be many ways in your application to edit the data in a given table, and you can check things in those many places; or you can enforce it at a database level and then handle that appropriately further up the stack.&lt;/p&gt;

&lt;p&gt;The second way is much more simple and will catch problems even if checks are not followed properly in a piece of application code.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the assist; coming from PostgreSQL, MySQL triggers and functions seem like a hell of a mess&#8230;</p>

<p>I would say it&#8217;s the best place to enforce business rules if you want consistent data.  There might be many ways in your application to edit the data in a given table, and you can check things in those many places; or you can enforce it at a database level and then handle that appropriately further up the stack.</p>

<p>The second way is much more simple and will catch problems even if checks are not followed properly in a piece of application code.</p>]]></content:encoded>
	</item>
</channel>
</rss>
