Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Programming Help
Reload this Page Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP)
Tags: , , , , , , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,143
Jack of All Trades
CyberSpace United States
   
Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP) - 12-01-2006

In a new post, Christopher Jones talks about some difficulty a friend of his was having with returning a connection type from Oracle back to a script. In his case, it was a Ruby script and, unfortunately, there's no direct support for it. So, Christopher jumped in to help out.
PHP's oci8 extension oci_bind_array_by_name() can bind collections but there is no equivalent in ruby-oci8.
Justin outlines a solution on his blog Ruby: Invoking a PL/SQL Package with Array args. His example relies on some company infrastructure so I came up with this standalone example. This first SQL*Plus script sets up the scenario.
Stick with me on this one - there's some PHP right there at the end. He shows how much simpler the same kind of operation would be in PHP thanks to the oci_bind_array_by_name functionality understanding the return value. What took about 20 lines for just the Ruby code to handle the result correctly takes only five in PHP.


Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP) - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Christopher Jones' Blog: Casting PL/SQL arrays as REF CURSORS for Ruby (and PHP)
Thread Thread Starter Forum Replies Last Post
Zend Developer Zone: Chris Hartjes on Learning From Ruby on Rails Affiliate Blogs Programming Help 0 11-30-2006 06:29 PM
Tobias Schlitt's Blog: Tim Bray compared Java, Ruby and PHP Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
Chris Shiflett's Blog: Ruby on Rails Fans Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
Professional PHP Blog: PHP Book sales trends versus Java and Ruby Affiliate Blogs Programming Help 0 11-28-2006 12:39 AM
Paul Jones' Blog: How Fast Is Your Framework? Affiliate Blogs Programming Help 0 11-21-2006 01:26 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34