<?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>Comments on: SHOW CREATE TRIGGER &#8211; Nope</title>
	<atom:link href="http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Fri, 03 Sep 2010 03:50:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Scott Noyes</title>
		<link>http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/comment-page-1/#comment-11683</link>
		<dc:creator>Scott Noyes</dc:creator>
		<pubDate>Mon, 15 Oct 2007 16:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/02/08/show-create-trigger-nope/#comment-11683</guid>
		<description>I cobbled this up for the 5.0 to 5.1.20 crowd. As of 5.1.21, there is a built in SHOW CREATE TRIGGER syntax.

http://forge.mysql.com/snippets/view.php?id=103</description>
		<content:encoded><![CDATA[<p>I cobbled this up for the 5.0 to 5.1.20 crowd. As of 5.1.21, there is a built in SHOW CREATE TRIGGER syntax.</p>
<p><a href="http://forge.mysql.com/snippets/view.php?id=103" rel="nofollow">http://forge.mysql.com/snippets/view.php?id=103</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Aker</title>
		<link>http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/comment-page-1/#comment-3956</link>
		<dc:creator>Brian Aker</dc:creator>
		<pubDate>Tue, 13 Feb 2007 13:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/02/08/show-create-trigger-nope/#comment-3956</guid>
		<description>Hi!

This is a bug. I know about it, and its on our list of things to fix. Yeah, I am sure you are thinking &quot;it looks like a feature request&quot;, but no, it is a bug :)

Cheers,
  -Brian</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>This is a bug. I know about it, and its on our list of things to fix. Yeah, I am sure you are thinking &#8220;it looks like a feature request&#8221;, but no, it is a bug <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers,<br />
  -Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jon</title>
		<link>http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/comment-page-1/#comment-3925</link>
		<dc:creator>jon</dc:creator>
		<pubDate>Fri, 09 Feb 2007 17:39:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/02/08/show-create-trigger-nope/#comment-3925</guid>
		<description>Hi Basi,

Selecting from the information schema has the same problems as using show triggers like &quot;table&quot;, in that it doesn&#039;t generate for me SQL that I can modify and easily use to modify the trigger.

I&#039;m lazy, is what it boils down to.  Using mysqldump and the script I wrote above, you can easily modify any trigger in your database within seconds.  The equivilent of &quot;show create trigger&quot;, except with every trigger.</description>
		<content:encoded><![CDATA[<p>Hi Basi,</p>
<p>Selecting from the information schema has the same problems as using show triggers like &#8220;table&#8221;, in that it doesn&#8217;t generate for me SQL that I can modify and easily use to modify the trigger.</p>
<p>I&#8217;m lazy, is what it boils down to.  Using mysqldump and the script I wrote above, you can easily modify any trigger in your database within seconds.  The equivilent of &#8220;show create trigger&#8221;, except with every trigger.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basi</title>
		<link>http://www.rustyrazorblade.com/2007/02/show-create-trigger-nope/comment-page-1/#comment-3923</link>
		<dc:creator>Basi</dc:creator>
		<pubDate>Fri, 09 Feb 2007 14:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/index.php/2007/02/08/show-create-trigger-nope/#comment-3923</guid>
		<description>And what about using INFORMATION_SCHEMA?

For example, all the triggers from the server:

mysql&gt; SELECT * FROM TRIGGERS\G
*************************** 1. row ***************************
           TRIGGER_CATALOG: NULL
            TRIGGER_SCHEMA: control_panel
              TRIGGER_NAME: class_test_update
        EVENT_MANIPULATION: UPDATE
      EVENT_OBJECT_CATALOG: NULL
       EVENT_OBJECT_SCHEMA: control_panel
        EVENT_OBJECT_TABLE: class_test
              ACTION_ORDER: 0
          ACTION_CONDITION: NULL
          ACTION_STATEMENT: BEGIN
 INSERT INTO `historics`.`historic_class_test` ( `id_class_test`, `OLD_varchar_`, `NEW_varchar_`, `OLD_varchar_req`, `NEW_varchar_req`, `OLD_encrypted_`, `NEW_encrypted_`, `user_update`, `ip_update` ) VALUES (OLD.id_class_test, OLD.varchar_, NEW.varchar_, OLD.varchar_req, NEW.varchar_req, OLD.encrypted_, NEW.encrypted_, @REMOTE_USER, @REMOTE_ADDR );
 END
        ACTION_ORIENTATION: ROW
             ACTION_TIMING: AFTER
ACTION_REFERENCE_OLD_TABLE: NULL
ACTION_REFERENCE_NEW_TABLE: NULL
  ACTION_REFERENCE_OLD_ROW: OLD
  ACTION_REFERENCE_NEW_ROW: NEW
                   CREATED: NULL
                  SQL_MODE: NO_FIELD_OPTIONS,MYSQL40,HIGH_NOT_PRECEDENCE
                   DEFINER: powfull@%
*************************** 2. row ***************************
           TRIGGER_CATALOG: NULL
            TRIGGER_SCHEMA: control_panel
              TRIGGER_NAME: class_test_delete
        EVENT_MANIPULATION: DELETE
      EVENT_OBJECT_CATALOG: NULL
       EVENT_OBJECT_SCHEMA: control_panel
        EVENT_OBJECT_TABLE: class_test
              ACTION_ORDER: 0
          ACTION_CONDITION: NULL
          ACTION_STATEMENT: BEGIN
 INSERT INTO `historics`.`historic_class_test` ( `type`, `id_class_test`, `OLD_varchar_`, `NEW_varchar_`, `OLD_varchar_req`, `NEW_varchar_req`, `OLD_encrypted_`, `NEW_encrypted_`, `user_update`, `ip_update` ) VALUES ( &#039;DELETE&#039;, OLD.id_class_test, OLD.varchar_, NULL, OLD.varchar_req, NULL, OLD.encrypted_, NULL, @REMOTE_USER, @REMOTE_ADDR );
 END
        ACTION_ORIENTATION: ROW
             ACTION_TIMING: AFTER
ACTION_REFERENCE_OLD_TABLE: NULL
ACTION_REFERENCE_NEW_TABLE: NULL
  ACTION_REFERENCE_OLD_ROW: OLD
  ACTION_REFERENCE_NEW_ROW: NEW
                   CREATED: NULL
                  SQL_MODE: NO_FIELD_OPTIONS,MYSQL40,HIGH_NOT_PRECEDENCE
                   DEFINER: powfull@%
2 rows in set (1.61 sec)

information_schema, is the meta-database, and it supports SQL queries like another database...</description>
		<content:encoded><![CDATA[<p>And what about using INFORMATION_SCHEMA?</p>
<p>For example, all the triggers from the server:</p>
<p>mysql&gt; SELECT * FROM TRIGGERS\G<br />
*************************** 1. row ***************************<br />
           TRIGGER_CATALOG: NULL<br />
            TRIGGER_SCHEMA: control_panel<br />
              TRIGGER_NAME: class_test_update<br />
        EVENT_MANIPULATION: UPDATE<br />
      EVENT_OBJECT_CATALOG: NULL<br />
       EVENT_OBJECT_SCHEMA: control_panel<br />
        EVENT_OBJECT_TABLE: class_test<br />
              ACTION_ORDER: 0<br />
          ACTION_CONDITION: NULL<br />
          ACTION_STATEMENT: BEGIN<br />
 INSERT INTO `historics`.`historic_class_test` ( `id_class_test`, `OLD_varchar_`, `NEW_varchar_`, `OLD_varchar_req`, `NEW_varchar_req`, `OLD_encrypted_`, `NEW_encrypted_`, `user_update`, `ip_update` ) VALUES (OLD.id_class_test, OLD.varchar_, NEW.varchar_, OLD.varchar_req, NEW.varchar_req, OLD.encrypted_, NEW.encrypted_, @REMOTE_USER, @REMOTE_ADDR );<br />
 END<br />
        ACTION_ORIENTATION: ROW<br />
             ACTION_TIMING: AFTER<br />
ACTION_REFERENCE_OLD_TABLE: NULL<br />
ACTION_REFERENCE_NEW_TABLE: NULL<br />
  ACTION_REFERENCE_OLD_ROW: OLD<br />
  ACTION_REFERENCE_NEW_ROW: NEW<br />
                   CREATED: NULL<br />
                  SQL_MODE: NO_FIELD_OPTIONS,MYSQL40,HIGH_NOT_PRECEDENCE<br />
                   DEFINER: powfull@%<br />
*************************** 2. row ***************************<br />
           TRIGGER_CATALOG: NULL<br />
            TRIGGER_SCHEMA: control_panel<br />
              TRIGGER_NAME: class_test_delete<br />
        EVENT_MANIPULATION: DELETE<br />
      EVENT_OBJECT_CATALOG: NULL<br />
       EVENT_OBJECT_SCHEMA: control_panel<br />
        EVENT_OBJECT_TABLE: class_test<br />
              ACTION_ORDER: 0<br />
          ACTION_CONDITION: NULL<br />
          ACTION_STATEMENT: BEGIN<br />
 INSERT INTO `historics`.`historic_class_test` ( `type`, `id_class_test`, `OLD_varchar_`, `NEW_varchar_`, `OLD_varchar_req`, `NEW_varchar_req`, `OLD_encrypted_`, `NEW_encrypted_`, `user_update`, `ip_update` ) VALUES ( &#8216;DELETE&#8217;, OLD.id_class_test, OLD.varchar_, NULL, OLD.varchar_req, NULL, OLD.encrypted_, NULL, @REMOTE_USER, @REMOTE_ADDR );<br />
 END<br />
        ACTION_ORIENTATION: ROW<br />
             ACTION_TIMING: AFTER<br />
ACTION_REFERENCE_OLD_TABLE: NULL<br />
ACTION_REFERENCE_NEW_TABLE: NULL<br />
  ACTION_REFERENCE_OLD_ROW: OLD<br />
  ACTION_REFERENCE_NEW_ROW: NEW<br />
                   CREATED: NULL<br />
                  SQL_MODE: NO_FIELD_OPTIONS,MYSQL40,HIGH_NOT_PRECEDENCE<br />
                   DEFINER: powfull@%<br />
2 rows in set (1.61 sec)</p>
<p>information_schema, is the meta-database, and it supports SQL queries like another database&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
