<?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: Update error from RECURSIVE view_parts in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842587#M4873430</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;you have a record on this forum of not even trying&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's a different kind of problems with "recursion", apparently:)&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jul 2014 10:27:34 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2014-07-10T10:27:34Z</dc:date>
    <item>
      <title>Update error from RECURSIVE view_parts</title>
      <link>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaq-p/13842584</link>
      <description>&lt;PRE&gt;WITH RECURSIVE parts ( component, subcomponent, quantity ) AS
(
  SELECT CAST( NULL AS VARCHAR ),  -- CASTs must be used
         'bookcase',
         `enter code here`         -- to declare the
         CAST( 1   AS INT )        -- correct datatypes

   UNION ALL

  SELECT b.component,
         b.subcomponent,
         p.quantity * b.quantity
    FROM parts p
    JOIN bookcase b
      ON p.subcomponent = b.component
)
update updte_date 
   set subcomponent='newdate'
  FROM parts,update_date --error update
&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jul 2014 23:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaq-p/13842584</guid>
      <dc:creator>ximen</dc:creator>
      <dc:date>2014-07-07T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update error from RECURSIVE view_parts</title>
      <link>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842586#M4873429</link>
      <description>&lt;P&gt;Hm, is that "mfkpie8-style" to leave the actual question as an exercise for the reader?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 09:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842586#M4873429</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2014-07-10T09:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Update error from RECURSIVE view_parts</title>
      <link>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842585#M4873428</link>
      <description>&lt;P&gt;Please do not post garbage... please ask an actual question, with actual code, and an actual error message.&lt;/P&gt;
&lt;P&gt;HOWEVER... you have a record on this forum of not even trying. In my opinion you should be banned for wasting everyone's time.&lt;/P&gt;
&lt;PRE&gt;Could not execute statement.
Syntax error near 'CAST' on line 6
SQLCODE=-131, ODBC 3 State="42000"
Line 1, column 1

WITH RECURSIVE parts ( component, subcomponent, quantity ) AS
(
  SELECT CAST( NULL AS VARCHAR ),  -- CASTs must be used
         'bookcase',
         `enter code here`         -- to declare the
         CAST( 1   AS INT )        -- correct datatypes

   UNION ALL

  SELECT b.component,
         b.subcomponent,
         p.quantity * b.quantity
    FROM parts p
    JOIN bookcase b
      ON p.subcomponent = b.component
)
update updte_date 
   set subcomponent='newdate'
  FROM parts,update_date --error update
&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jul 2014 10:20:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842585#M4873428</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2014-07-10T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Update error from RECURSIVE view_parts</title>
      <link>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842587#M4873430</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;you have a record on this forum of not even trying&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That's a different kind of problems with "recursion", apparently:)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2014 10:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/update-error-from-recursive-view-parts/qaa-p/13842587#M4873430</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2014-07-10T10:27:34Z</dc:date>
    </item>
  </channel>
</rss>

