title: Ruby on Rails and Oracle cursor. How to open cursor inside cursor?
body: <p>So i do have cursor witch i'm calling from PLSQL.</p>
  
  <pre><code>plsql.get_values(code, id) do |cursor|
    if cursor[:p_error].blank?
      outcome += cursor[:p_bui_data].fetch_all
    else
      outcome = cursor[:p_error]
    end
  </code></pre>
  
  <p>This script give me the this output</p>
  
  <pre><code>[["1513131313153131", 0, 1220, "Text 1", "Text 2", 0, "3270900", #&lt;PLSQL::OCIConnection::Cursor:0x13514568 @raw_cursor=#&lt;OCI8::Cursor:0x135148f8&gt;, @connection=#&lt;PLSQL::OCIConnection:0x1054ce48 @raw_connection=nil, @activerecord_class=ActiveRecord::Base, @raw_driver=:oci&gt;&gt;]]
  </code></pre>
  
  <p>So as you see inside it there is still cursor. The question is how to fetch it?</p>
  
  <p>So the final output that i wanna see is like </p>
  
  <pre><code>[["1513131313153131", 0, 1220, "Text 1", "Text 2", 0, "3270900", "11111111"]]
  </code></pre>
  
  <p>Where <code>11111111</code> is fetched cursor value.</p>
  
  <p>Ruby 1.8.7</p>