<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: ON DELETE CASCADE not functioning in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829523#M4860366</link>
    <description>&lt;P&gt;It also worked for my co-worker on 12.0.1.3718 so it must be very new.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jun 2012 12:35:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-06-04T12:35:53Z</dc:date>
    <item>
      <title>ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaq-p/13829520</link>
      <description>&lt;P&gt;I am running sa 12.0.1.3726 and having issues with my system triggers when executing the following script&lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test1&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id&lt;/SPAN&gt; &lt;SPAN class="n"&gt;INTEGER&lt;/SPAN&gt; &lt;SPAN class="n"&gt;PRIMARY&lt;/SPAN&gt; &lt;SPAN class="n"&gt;KEY&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;CREATE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TABLE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test2&lt;/SPAN&gt; &lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id2&lt;/SPAN&gt; &lt;SPAN class="n"&gt;INTEGER&lt;/SPAN&gt; &lt;SPAN class="n"&gt;PRIMARY&lt;/SPAN&gt; &lt;SPAN class="n"&gt;KEY&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;id&lt;/SPAN&gt; &lt;SPAN class="n"&gt;INTEGER&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="n"&gt;FOREIGN&lt;/SPAN&gt; &lt;SPAN class="n"&gt;KEY&lt;/SPAN&gt; &lt;SPAN class="n"&gt;id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;REFERENCES&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ON&lt;/SPAN&gt; &lt;SPAN class="n"&gt;UPDATE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CASCADE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;ON&lt;/SPAN&gt; &lt;SPAN class="n"&gt;DELETE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;CASCADE&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;

&lt;SPAN class="n"&gt;insert&lt;/SPAN&gt; &lt;SPAN class="n"&gt;into&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;SPAN class="nb"&gt;values&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;insert&lt;/SPAN&gt; &lt;SPAN class="n"&gt;into&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test2&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id2&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n"&gt;id&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;SPAN class="nb"&gt;values&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;);&lt;/SPAN&gt;
&lt;SPAN class="nb"&gt;delete&lt;/SPAN&gt; &lt;SPAN class="n"&gt;from&lt;/SPAN&gt; &lt;SPAN class="n"&gt;test1&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;I get Primary key for row in table 'test1' is referenced by foreign key 'id' in table 'test2' when it should be handled by the ON DELETE rule.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 12:14:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaq-p/13829520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-04T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829522#M4860365</link>
      <description>&lt;P&gt;It works OK for me in 12.0.1.3298, so it must be a new &lt;STRIKE&gt;feature&lt;/STRIKE&gt; bug.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 12:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829522#M4860365</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2012-06-04T12:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829523#M4860366</link>
      <description>&lt;P&gt;It also worked for my co-worker on 12.0.1.3718 so it must be very new.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 12:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829523#M4860366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-04T12:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829521#M4860364</link>
      <description>&lt;P&gt;I have no issues with either 12.0.1.3456 or 12.0.1.3741.&lt;/P&gt;
&lt;P&gt;Is this a simplified repro of a larger problem?&lt;/P&gt;
&lt;P&gt;Is is possible that you have the fire_triggers option set, or used the -gf server option?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 13:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829521#M4860364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-04T13:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829524#M4860367</link>
      <description>&lt;P&gt;It appears one of my earlier scripts turned off fire_triggers(then errored out and never turned it back on). Turned it back on and it functioned as expected&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 13:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829524#M4860367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-06-04T13:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829525#M4860368</link>
      <description>&lt;P&gt;The answer is "fire_triggers", what is the question?&lt;/P&gt;
&lt;P&gt;"How do I mess with people's minds?"&lt;/P&gt;
&lt;P&gt;Correct! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2012 13:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829525#M4860368</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2012-06-04T13:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: ON DELETE CASCADE not functioning</title>
      <link>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829526#M4860369</link>
      <description>&lt;P&gt;FWIW, it's not very new, it's reaaaaal old - even v5.5 contains that feature:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;FIRE_TRIGGERS&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;When set to ON (the default), triggers are fired. When set to OFF, no triggers are fired, &lt;STRONG&gt;including referential integrity triggers (such as cascading updates and deletes)&lt;/STRONG&gt;. Only a user with DBA authority can set this option. The option is overridden by the -gf command-line option, which turns off all trigger firing regardless of the FIRE_TRIGGERS setting.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Just for the record:)&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 12:03:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/on-delete-cascade-not-functioning/qaa-p/13829526#M4860369</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-06-05T12:03:25Z</dc:date>
    </item>
  </channel>
</rss>

