<?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 0.4.1 &#8211; support for package variables, views, dbms_output and more</title>
	<atom:link href="http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/</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: Martin</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1121</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 19 Feb 2010 12:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1121</guid>
		<description>I&#039;m using ruby-plsql with rails. When putting

  require &#039;ruby-plsql&#039;
  plsql.activerecord_class = ActiveRecord::Base
  plsql.connection.autocommit = false

at the end of environment.db, I could not start webrick anymore. 
Wenn putting the same statements in front of a 
class models/plsql_processor.rb, I have no problems, everything works.

Any ideas what the best place to put these statements is? Seems to depend
on rails&#039; initialization progress...</description>
		<content:encoded><![CDATA[<p>I&#8217;m using ruby-plsql with rails. When putting</p>
<p>  require &#8216;ruby-plsql&#8217;<br />
  plsql.activerecord_class = ActiveRecord::Base<br />
  plsql.connection.autocommit = false</p>
<p>at the end of environment.db, I could not start webrick anymore.<br />
Wenn putting the same statements in front of a<br />
class models/plsql_processor.rb, I have no problems, everything works.</p>
<p>Any ideas what the best place to put these statements is? Seems to depend<br />
on rails&#8217; initialization progress&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1087</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Sun, 17 Jan 2010 21:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1087</guid>
		<description>Currently VARCHAR2(n CHAR) type is not supported - I am parsing all_source data dictionary view to find out variable definitions and didn&#039;t include pattern for recognizing CHAR modifier for VARCHAR2 length. I will fix it in next version of ruby-plsql.</description>
		<content:encoded><![CDATA[<p>Currently VARCHAR2(n CHAR) type is not supported &#8211; I am parsing all_source data dictionary view to find out variable definitions and didn&#8217;t include pattern for recognizing CHAR modifier for VARCHAR2 length. I will fix it in next version of ruby-plsql.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GZI</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1082</link>
		<dc:creator>GZI</dc:creator>
		<pubDate>Wed, 13 Jan 2010 12:36:14 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1082</guid>
		<description>Is there any specific code to access global package variable defined as VARCHAR2(50 CHAR)?

CREATE OR REPLACE PACKAGE test_package IS
  varchar2_variable VARCHAR2(50);
  varchar2char_variable VARCHAR2(50 CHAR);
END;

plsql.test_package.varchar2_variable = &#039;test&#039; -- OK
plsql.test_package.varchar2char_variable = &#039;test&#039; -- NOK (No PL/SQL procedure or variable &#039;varchar2char_variable&#039; found)</description>
		<content:encoded><![CDATA[<p>Is there any specific code to access global package variable defined as VARCHAR2(50 CHAR)?</p>
<p>CREATE OR REPLACE PACKAGE test_package IS<br />
  varchar2_variable VARCHAR2(50);<br />
  varchar2char_variable VARCHAR2(50 CHAR);<br />
END;</p>
<p>plsql.test_package.varchar2_variable = &#8216;test&#8217; &#8212; OK<br />
plsql.test_package.varchar2char_variable = &#8216;test&#8217; &#8212; NOK (No PL/SQL procedure or variable &#8216;varchar2char_variable&#8217; found)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1080</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 05 Jan 2010 09:28:28 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1080</guid>
		<description>Found out that underlying ruby-oci8 library (OCI wrapper in Ruby) that I use in ruby-plsql already provides interface for that - http://limlian.blogspot.com/2008/05/ruby-oci8-v20-new-feature-array-dml.html</description>
		<content:encoded><![CDATA[<p>Found out that underlying ruby-oci8 library (OCI wrapper in Ruby) that I use in ruby-plsql already provides interface for that &#8211; <a href="http://limlian.blogspot.com/2008/05/ruby-oci8-v20-new-feature-array-dml.html" rel="nofollow">http://limlian.blogspot.com/2008/05/ruby-oci8-v20-new-feature-array-dml.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1079</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Tue, 05 Jan 2010 09:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1079</guid>
		<description>Yes, ruby-oci8 2.0.3 core features are as stable as in ruby-oci8 1.x, there are just some bugs in new complex data type support features. I plan to support just ruby-oci8 2.0.3 or later in future ruby-plsql and oracle_enhanced versions as I start to use many ruby-oci8 2.x features and it is too complicated to maintain backwards compatibility with ruby-oci8 1.x :)</description>
		<content:encoded><![CDATA[<p>Yes, ruby-oci8 2.0.3 core features are as stable as in ruby-oci8 1.x, there are just some bugs in new complex data type support features. I plan to support just ruby-oci8 2.0.3 or later in future ruby-plsql and oracle_enhanced versions as I start to use many ruby-oci8 2.x features and it is too complicated to maintain backwards compatibility with ruby-oci8 1.x :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DeLynn Berry</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1078</link>
		<dc:creator>DeLynn Berry</dc:creator>
		<pubDate>Tue, 05 Jan 2010 06:30:14 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1078</guid>
		<description>Looks like another great release Raimonds! I&#039;ve held off upgrading to these newer versions because of the OCI8 &gt; v2.0 dependency. I haven&#039;t seen anything from the OCI8 developer to suggest that the 2.0 line is production ready. I can only assume though that you are using it very regularly. Do you feel like the 2.0 library is as production ready as the existing 1.0 product?</description>
		<content:encoded><![CDATA[<p>Looks like another great release Raimonds! I&#8217;ve held off upgrading to these newer versions because of the OCI8 &gt; v2.0 dependency. I haven&#8217;t seen anything from the OCI8 developer to suggest that the 2.0 line is production ready. I can only assume though that you are using it very regularly. Do you feel like the 2.0 library is as production ready as the existing 1.0 product?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cary Millsap</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1077</link>
		<dc:creator>Cary Millsap</dc:creator>
		<pubDate>Tue, 05 Jan 2010 01:11:36 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1077</guid>
		<description>P.S.: Please don&#039;t overlook the end-to-end diagnostics features of the OCI that allow application developers using your drivers to instrument their code. When developers can instrument code paths with service, module, action, and client information (exposed as OCI_ATTR_SERVICE, OCI_ATTR_MODULE, OCI_ATTR_ACTION, OCI_ATTR_CLIENT_IDENTIFIER, OCI_ATTR_CLIENT_INFO, etc. in the OCI model), then they have a *much* easier time measuring and improving the performance of their applications throughout the software life cycle.

Cary</description>
		<content:encoded><![CDATA[<p>P.S.: Please don&#8217;t overlook the end-to-end diagnostics features of the OCI that allow application developers using your drivers to instrument their code. When developers can instrument code paths with service, module, action, and client information (exposed as OCI_ATTR_SERVICE, OCI_ATTR_MODULE, OCI_ATTR_ACTION, OCI_ATTR_CLIENT_IDENTIFIER, OCI_ATTR_CLIENT_INFO, etc. in the OCI model), then they have a *much* easier time measuring and improving the performance of their applications throughout the software life cycle.</p>
<p>Cary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cary Millsap</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1076</link>
		<dc:creator>Cary Millsap</dc:creator>
		<pubDate>Tue, 05 Jan 2010 00:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1076</guid>
		<description>It&#039;s good that you&#039;re going to attend to it.

You won&#039;t have a problem finding the OCI support for what you&#039;re looking for. Search http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10646/oci04sql.htm#g454129 for the string &quot;Batch Error Mode&quot; for part of what you&#039;ll need.

Good luck!

Cary</description>
		<content:encoded><![CDATA[<p>It&#8217;s good that you&#8217;re going to attend to it.</p>
<p>You won&#8217;t have a problem finding the OCI support for what you&#8217;re looking for. Search <a href="http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10646/oci04sql.htm#g454129" rel="nofollow">http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10646/oci04sql.htm#g454129</a> for the string &#8220;Batch Error Mode&#8221; for part of what you&#8217;ll need.</p>
<p>Good luck!</p>
<p>Cary</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1075</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Mon, 04 Jan 2010 23:42:11 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1075</guid>
		<description>Actually currently insert_values will create a separate prepared statement for each row - so probably I will improve it in future to use just of prepared statement to enhance performance for insertion of many rows. In this case I could also use setExecuteBatch JDBC method to reduce network roundtrips (need to find if I can do something similar using OCI C library as well). So thanks for bringing my attention to it :)</description>
		<content:encoded><![CDATA[<p>Actually currently insert_values will create a separate prepared statement for each row &#8211; so probably I will improve it in future to use just of prepared statement to enhance performance for insertion of many rows. In this case I could also use setExecuteBatch JDBC method to reduce network roundtrips (need to find if I can do something similar using OCI C library as well). So thanks for bringing my attention to it :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raimonds Simanovskis</title>
		<link>http://blog.rayapps.com/2010/01/04/ruby-plsql-0-4-1-support-for-package-variables-views-dbms_output-and-more/#comment-1074</link>
		<dc:creator>Raimonds Simanovskis</dc:creator>
		<pubDate>Mon, 04 Jan 2010 23:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://rayapps.wordpress.com/?p=131#comment-1074</guid>
		<description>1. It will perform two distinct INSERT INTO statements. As currently it is mostly meant for unit test data preparation I do not worry too much about network latency. When you will run your tests in continuous integration then anyway it is preferred to run it from machine which have fast network connection to database.

2. ruby-plsql will use bind variables with prepared cursor both for table/view operations as well as for procedure calls with parameters. (It has different implementation compared to ActiveRecord oracle_enhanced adapter which always generates all variables inside SQL string as literals - but that&#039;s different topic).</description>
		<content:encoded><![CDATA[<p>1. It will perform two distinct INSERT INTO statements. As currently it is mostly meant for unit test data preparation I do not worry too much about network latency. When you will run your tests in continuous integration then anyway it is preferred to run it from machine which have fast network connection to database.</p>
<p>2. ruby-plsql will use bind variables with prepared cursor both for table/view operations as well as for procedure calls with parameters. (It has different implementation compared to ActiveRecord oracle_enhanced adapter which always generates all variables inside SQL string as literals &#8211; but that&#8217;s different topic).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
