<?xml version="1.0" encoding="UTF-8"?>
<action-sequence> 
  <title>Test SQL Execute Error 1</title>
  <version>1</version>
  <logging-level>DEBUG</logging-level>
  <documentation> 
    <author>Marc Batchelor</author>  
    <description>This tests the SQL Execute rule to make sure that it errors properly.</description>  
    <help/>  
    <result-type>rule</result-type>  
    <icon/> 
  </documentation>

  <inputs/>

	<outputs>
		<rule-result>
			<type>list</type>
		</rule-result>
	</outputs>

  <resources/>
  
  <actions>
      <action-definition>

        <action-outputs>
          <rule-result type="list"/>
        </action-outputs>
        
        <component-name>SQLExecute</component-name>
        <action-type>rule</action-type>
      	<component-definition>
          <jndi>SampleDataAdmin</jndi>
          <!--
            Should error on the drop table foo because it doesn't exist. Should
            bail out of the action sequence execution at that point.
          -->
          <query><![CDATA[
            drop table foo;
            create table foo (bar int)
          ]]></query>
        </component-definition>
      </action-definition>
  </actions> 
</action-sequence>