<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: ruby-plsql gem now supports JRuby and Oracle JDBC driver</title>
	<atom:link href="http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/</link>
	<description>About Ruby, Oracle, Mac and others</description>
	<lastBuildDate>Wed, 28 Jul 2010 16:18:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Vikas</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-689</link>
		<dc:creator>Vikas</dc:creator>
		<pubDate>Wed, 02 Sep 2009 04:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-689</guid>
		<description>Hi Rai,

 That means currently there is no way to get dbms_output to standard output when invoking stored procedure using pl-sql gem. Ok :( ..
Thanks Rai for your valuable comments.

Thanks,
Vikas Rana</description>
		<content:encoded><![CDATA[<p>Hi Rai,</p>
<p> That means currently there is no way to get dbms_output to standard output when invoking stored procedure using pl-sql gem. Ok :( ..<br />
Thanks Rai for your valuable comments.</p>
<p>Thanks,<br />
Vikas Rana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-688</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 01 Sep 2009 20:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-688</guid>
		<description>Currently it is not possible to get dbms_output to standard output of Ruby process.
Maybe in later releases will add such functionality (I have already one patch submitted which does similar thing for oracle_enhanced adapter).</description>
		<content:encoded><![CDATA[<p>Currently it is not possible to get dbms_output to standard output of Ruby process.<br />
Maybe in later releases will add such functionality (I have already one patch submitted which does similar thing for oracle_enhanced adapter).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vikas</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-686</link>
		<dc:creator>Vikas</dc:creator>
		<pubDate>Tue, 01 Sep 2009 12:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-686</guid>
		<description>Hi,

 I have a stored procedure named as &quot;display&quot;. In this stored procedure I have dbms_out.put_line statment. I am not able to get the statement specified in the dbms_output in the standard output of my terminal.
In my stored procedure I have a statement &quot;dbms_output.enable&quot; before the put_line statement. Eventhough I am not able to get the standard output to my terminal.

Please guide me on this.

Thanks,
Vikas Rana</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> I have a stored procedure named as &#8220;display&#8221;. In this stored procedure I have dbms_out.put_line statment. I am not able to get the statement specified in the dbms_output in the standard output of my terminal.<br />
In my stored procedure I have a statement &#8220;dbms_output.enable&#8221; before the put_line statement. Eventhough I am not able to get the standard output to my terminal.</p>
<p>Please guide me on this.</p>
<p>Thanks,<br />
Vikas Rana</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-572</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Thu, 06 Aug 2009 20:10:11 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-572</guid>
		<description>I found an issue - if using sequential arguments and if not all arguments are specified then I add missing arguments with value NULL. Probably in some projects had APIs with lot of mandatory parameters and therefore implemented it :) As probably some our applications depend on that it wouldn&#039;t be very good to turn this &quot;feature&quot; off (probably in next version I could add some configuration option which could control this behavior).

One workaround is to use named parameters when calling it from Ruby:
plsql.prepare_phone(:country_id =&gt; 82, :work_phone_no =&gt; &#039;+49 (89) 1234,123&#039;)
In this case no additional parameters would be passed.

Other option would be always to replace NULL values in parameters with default values at PL/SQL side :)</description>
		<content:encoded><![CDATA[<p>I found an issue &#8211; if using sequential arguments and if not all arguments are specified then I add missing arguments with value NULL. Probably in some projects had APIs with lot of mandatory parameters and therefore implemented it :) As probably some our applications depend on that it wouldn&#8217;t be very good to turn this &#8220;feature&#8221; off (probably in next version I could add some configuration option which could control this behavior).</p>
<p>One workaround is to use named parameters when calling it from Ruby:<br />
plsql.prepare_phone(:country_id =&gt; 82, :work_phone_no =&gt; &#8216;+49 (89) 1234,123&#8242;)<br />
In this case no additional parameters would be passed.</p>
<p>Other option would be always to replace NULL values in parameters with default values at PL/SQL side :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-570</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 05 Aug 2009 12:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-570</guid>
		<description>update to this:

my prepare_phone definition looks like this

FUNCTION prepare_phone (country_id in number, work_phone_no in varchar, leading_zero in number default 1) RETURN varchar

I just discovered in ruby_plsql the function returns expected result when the third parameter is provided:
p plsql.chrispack.prepare_phone(82,”+49 (89) 1234,123″,1);
“0891234″
p plsql.chrispack.prepare_phone(82,”+49 (89) 1234,123″); -- should deliver same result but does not
“891234″

is it because of the default value in third parameter not being respected by ruby_plsql?

thanks,
chris</description>
		<content:encoded><![CDATA[<p>update to this:</p>
<p>my prepare_phone definition looks like this</p>
<p>FUNCTION prepare_phone (country_id in number, work_phone_no in varchar, leading_zero in number default 1) RETURN varchar</p>
<p>I just discovered in ruby_plsql the function returns expected result when the third parameter is provided:<br />
p plsql.chrispack.prepare_phone(82,”+49 (89) 1234,123″,1);<br />
“0891234″<br />
p plsql.chrispack.prepare_phone(82,”+49 (89) 1234,123″); &#8212; should deliver same result but does not<br />
“891234″</p>
<p>is it because of the default value in third parameter not being respected by ruby_plsql?</p>
<p>thanks,<br />
chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-569</link>
		<dc:creator>chris</dc:creator>
		<pubDate>Wed, 05 Aug 2009 11:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-569</guid>
		<description>Hi Raimonds,

I noticed a little different ruby_plsql behaviour to what sqlplus does in the following example:

I have a plssql function in package chrispack called prepare_phone

in sqlplus
SQL&gt; select chrispack.prepare_phone(82,&#039;+49 (89) 1234,123&#039;) from dual;
CHRISPACK.PREPARE_PHONE(82,&#039;+49(89)1234,123&#039;)
--------------------------------------------------------------------------------
0891234

when I run the same with in ruby:

p plsql.chrispack.prepare_phone(82,&quot;+49 (89) 1234,123&quot;);

it returns:
&quot;8912345&quot; (without leading 0)

Is it ruby_plsql behaviour or some ruby issue?

thanks,
chris</description>
		<content:encoded><![CDATA[<p>Hi Raimonds,</p>
<p>I noticed a little different ruby_plsql behaviour to what sqlplus does in the following example:</p>
<p>I have a plssql function in package chrispack called prepare_phone</p>
<p>in sqlplus<br />
SQL&gt; select chrispack.prepare_phone(82,&#8217;+49 (89) 1234,123&#8242;) from dual;<br />
CHRISPACK.PREPARE_PHONE(82,&#8217;+49(89)1234,123&#8242;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
0891234</p>
<p>when I run the same with in ruby:</p>
<p>p plsql.chrispack.prepare_phone(82,&#8221;+49 (89) 1234,123&#8243;);</p>
<p>it returns:<br />
&#8220;8912345&#8243; (without leading 0)</p>
<p>Is it ruby_plsql behaviour or some ruby issue?</p>
<p>thanks,<br />
chris</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valentino</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-559</link>
		<dc:creator>Valentino</dc:creator>
		<pubDate>Thu, 30 Jul 2009 02:33:05 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-559</guid>
		<description>Hi Ray

I tried your suggested method.
result = plsql.proc_cuid_insert_cuid_detail(&#039;BBC338&#039;,&#039;&#039;,&#039;P5954804&#039;,&#039;TESTING, JA ZOOO&#039;,&#039;LIS&#039;,&#039;QMH&#039;,nil,nil)

Same error occor.
puts result[:raiserror_text].strip
=&gt; &quot;Error in cuid_detail table insertion!ORA-01461: can bind a LONG value only for insert into a LONG column&quot;

I got no problem to execute the same store procedure with same parameters via SQLPLUS.

I think there is a part in somewhere to change the datatype to LONG...but actually my table schema do not have LONG column.. I tried to test with oracle jdbc adapter and your oracle_enhanced adapter. The result is the same...

I have really no idea, and your expertise advice is valuable to me.

Many thanks
Valentino</description>
		<content:encoded><![CDATA[<p>Hi Ray</p>
<p>I tried your suggested method.<br />
result = plsql.proc_cuid_insert_cuid_detail(&#8216;BBC338&#8242;,&#8221;,&#8217;P5954804&#8242;,&#8217;TESTING, JA ZOOO&#8217;,'LIS&#8217;,'QMH&#8217;,nil,nil)</p>
<p>Same error occor.<br />
puts result[:raiserror_text].strip<br />
=&gt; &#8220;Error in cuid_detail table insertion!ORA-01461: can bind a LONG value only for insert into a LONG column&#8221;</p>
<p>I got no problem to execute the same store procedure with same parameters via SQLPLUS.</p>
<p>I think there is a part in somewhere to change the datatype to LONG&#8230;but actually my table schema do not have LONG column.. I tried to test with oracle jdbc adapter and your oracle_enhanced adapter. The result is the same&#8230;</p>
<p>I have really no idea, and your expertise advice is valuable to me.</p>
<p>Many thanks<br />
Valentino</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-555</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Wed, 29 Jul 2009 12:44:43 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-555</guid>
		<description>Why are you doing it in so complex way? Have you tried

plsql.proc_cuid_insert_cuid_detail(&#039;BBC338&#039;, &#039;&#039;, &#039;P5954804&#039;, &#039;TESTING, TEST ZOOO&#039;,
&#039;LIS&#039;, &#039;QMH&#039;, nil, nil)

This is the main idea of ruby-plsql gem that it provides nice Ruby syntax for PL/SQL procedure calls and you don&#039;t need to do this huge parameter binding. Alternative syntax is to use named parameter hash which would be preferred way if you have so many parameters.

If you get the same error then it would be necessary to identify in which exact place in your procedure this exception is raised - based on error message it complains that bind variable type is not matching table column type.</description>
		<content:encoded><![CDATA[<p>Why are you doing it in so complex way? Have you tried</p>
<p>plsql.proc_cuid_insert_cuid_detail(&#8216;BBC338&#8242;, &#8221;, &#8216;P5954804&#8242;, &#8216;TESTING, TEST ZOOO&#8217;,<br />
&#8216;LIS&#8217;, &#8216;QMH&#8217;, nil, nil)</p>
<p>This is the main idea of ruby-plsql gem that it provides nice Ruby syntax for PL/SQL procedure calls and you don&#8217;t need to do this huge parameter binding. Alternative syntax is to use named parameter hash which would be preferred way if you have so many parameters.</p>
<p>If you get the same error then it would be necessary to identify in which exact place in your procedure this exception is raised &#8211; based on error message it complains that bind variable type is not matching table column type.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Valentino</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-553</link>
		<dc:creator>Valentino</dc:creator>
		<pubDate>Wed, 29 Jul 2009 02:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-553</guid>
		<description>Hi Ray

I got a problem in executing the specific store procedure in oracle via JDBC. But it is no problem to exec other store procedure, and all store procedures are working fine if I use SQLPLUS to connect to the database..

Please check the below link for detail.
http://www.ruby-forum.com/topic/192304

I am using JRuby 1.3.1, ruby-plsql-0.3.1

Please give me some advices

Many thanks
Valentino</description>
		<content:encoded><![CDATA[<p>Hi Ray</p>
<p>I got a problem in executing the specific store procedure in oracle via JDBC. But it is no problem to exec other store procedure, and all store procedures are working fine if I use SQLPLUS to connect to the database..</p>
<p>Please check the below link for detail.<br />
<a href="http://www.ruby-forum.com/topic/192304" rel="nofollow">http://www.ruby-forum.com/topic/192304</a></p>
<p>I am using JRuby 1.3.1, ruby-plsql-0.3.1</p>
<p>Please give me some advices</p>
<p>Many thanks<br />
Valentino</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2008/06/26/ruby-plsql-gem-now-supports-jruby-and-oracle-jdbc-driver/#comment-408</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 17 Feb 2009 14:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=29#comment-408</guid>
		<description>Yes, ruby-plsql currently does not support custom types as I need to map each Oracle type to Ruby type.
Currently I support just NUMBER, VARCHAR2, DATE, CLOB data types.</description>
		<content:encoded><![CDATA[<p>Yes, ruby-plsql currently does not support custom types as I need to map each Oracle type to Ruby type.<br />
Currently I support just NUMBER, VARCHAR2, DATE, CLOB data types.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
