<?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: Stored Procedures and Rails &#8211; Part 1</title>
	<atom:link href="http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/</link>
	<description>on ruby, rails and other stuff</description>
	<lastBuildDate>Sat, 23 Mar 2013 10:48:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Kai</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1475</link>
		<dc:creator><![CDATA[Kai]]></dc:creator>
		<pubDate>Thu, 03 Jan 2013 14:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1475</guid>
		<description><![CDATA[This was a very helpful post for me. However, when calling complex stored procedures with several result sets, I get strangely structured arrays/hashes and incomplete results with the method &quot;connection.select_all&quot;. I solved this problem by using &quot;ActiveRecord::Base.execute_procedure&quot;, as suggested on the official github site for the sql server adapter:

https://github.com/rails-sqlserver/activerecord-sqlserver-adapter]]></description>
		<content:encoded><![CDATA[<p>This was a very helpful post for me. However, when calling complex stored procedures with several result sets, I get strangely structured arrays/hashes and incomplete results with the method &#8220;connection.select_all&#8221;. I solved this problem by using &#8220;ActiveRecord::Base.execute_procedure&#8221;, as suggested on the official github site for the sql server adapter:</p>
<p><a href="https://github.com/rails-sqlserver/activerecord-sqlserver-adapter" rel="nofollow">https://github.com/rails-sqlserver/activerecord-sqlserver-adapter</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasir</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1011</link>
		<dc:creator><![CDATA[nasir]]></dc:creator>
		<pubDate>Thu, 19 Aug 2010 11:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1011</guid>
		<description><![CDATA[Please have a look at the solution here http://ho.race.hk/blog/?p=231

Basically you need to reconnect  &quot;ActiveRecord::Base.connection.reconnect!&quot;

as somehow mysql just drops the connection. I am not sure why.]]></description>
		<content:encoded><![CDATA[<p>Please have a look at the solution here <a href="http://ho.race.hk/blog/?p=231" rel="nofollow">http://ho.race.hk/blog/?p=231</a></p>
<p>Basically you need to reconnect  &#8220;ActiveRecord::Base.connection.reconnect!&#8221;</p>
<p>as somehow mysql just drops the connection. I am not sure why.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Petrus</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1010</link>
		<dc:creator><![CDATA[Petrus]]></dc:creator>
		<pubDate>Thu, 19 Aug 2010 08:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1010</guid>
		<description><![CDATA[Tried it &amp; ditto the same error, jruby thinks I am trying to do an update.  I tried to add the code on an existing model.  It just does not work.]]></description>
		<content:encoded><![CDATA[<p>Tried it &amp; ditto the same error, jruby thinks I am trying to do an update.  I tried to add the code on an existing model.  It just does not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Vinícius</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1009</link>
		<dc:creator><![CDATA[Samuel Vinícius]]></dc:creator>
		<pubDate>Wed, 18 Aug 2010 13:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-1009</guid>
		<description><![CDATA[very nice Horace]]></description>
		<content:encoded><![CDATA[<p>very nice Horace</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Horace Ho</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-997</link>
		<dc:creator><![CDATA[Horace Ho]]></dc:creator>
		<pubDate>Tue, 23 Mar 2010 08:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-997</guid>
		<description><![CDATA[The first call to a MySQL stored procedure is successfully. However, any further call to the same stored procedure returns a &quot;Commands out of sync&quot; error. I posted the details in: http://stackoverflow.com/questions/2498331/how-to-call-mysql-stored-procedure-from-rails]]></description>
		<content:encoded><![CDATA[<p>The first call to a MySQL stored procedure is successfully. However, any further call to the same stored procedure returns a &#8220;Commands out of sync&#8221; error. I posted the details in: <a href="http://stackoverflow.com/questions/2498331/how-to-call-mysql-stored-procedure-from-rails" rel="nofollow">http://stackoverflow.com/questions/2498331/how-to-call-mysql-stored-procedure-from-rails</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suset Fernandez</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-993</link>
		<dc:creator><![CDATA[Suset Fernandez]]></dc:creator>
		<pubDate>Fri, 12 Mar 2010 14:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-993</guid>
		<description><![CDATA[1. what exactly you tried,

I need to call a postgre stored procedure i did program some time ago, so I copied the code you suggets before.
I created the class DbStoredProcedure

2. why do you think it is not working,

When I call any method of the class it does not return anything or show any error, simply nothing happens

3. which db you are using, and

Postgres

4. any other information or errors, etc.

I am totally &quot;new&quot; using Ruby on Rails
I think I need a functional example, to understand better.]]></description>
		<content:encoded><![CDATA[<p>1. what exactly you tried,</p>
<p>I need to call a postgre stored procedure i did program some time ago, so I copied the code you suggets before.<br />
I created the class DbStoredProcedure</p>
<p>2. why do you think it is not working,</p>
<p>When I call any method of the class it does not return anything or show any error, simply nothing happens</p>
<p>3. which db you are using, and</p>
<p>Postgres</p>
<p>4. any other information or errors, etc.</p>
<p>I am totally &#8220;new&#8221; using Ruby on Rails<br />
I think I need a functional example, to understand better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nasir</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-988</link>
		<dc:creator><![CDATA[nasir]]></dc:creator>
		<pubDate>Wed, 10 Mar 2010 05:39:34 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-988</guid>
		<description><![CDATA[@Suset could you please give some more information on 

1. what exactly you tried,

2. why do you think it is not working,

3. which db you are using, and

4. any other information or errors, etc.]]></description>
		<content:encoded><![CDATA[<p>@Suset could you please give some more information on </p>
<p>1. what exactly you tried,</p>
<p>2. why do you think it is not working,</p>
<p>3. which db you are using, and</p>
<p>4. any other information or errors, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suset Fernandez</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-987</link>
		<dc:creator><![CDATA[Suset Fernandez]]></dc:creator>
		<pubDate>Tue, 09 Mar 2010 15:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-987</guid>
		<description><![CDATA[I am triying to call my stored procedures using the class CallStoredProcedures as you did suggest but it does not work. Can I have an example please?.]]></description>
		<content:encoded><![CDATA[<p>I am triying to call my stored procedures using the class CallStoredProcedures as you did suggest but it does not work. Can I have an example please?.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sofija</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-849</link>
		<dc:creator><![CDATA[Sofija]]></dc:creator>
		<pubDate>Wed, 13 May 2009 08:20:15 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-849</guid>
		<description><![CDATA[Thank you! It is a really great to be able to find some solution when there is no core solution.

Anyway, for RoR to be able to be an enterprise class programming language and framework using stored procedures and views in an database should be part of core.
I&#039;m not sure if there are RoR developers that are aware that procedures are best way to implement database logic, except for maybe some trivial models. That&#039;s why I believe using stored procedures should be supported by core ActiveRecord and defined per each available datrabase adapter to support different usages. One ExecProc! should do it...
Also did anyone notice availability explicit of START TRANSACTION END TRANSACTION implementations? These are like crucial for any serious developement.]]></description>
		<content:encoded><![CDATA[<p>Thank you! It is a really great to be able to find some solution when there is no core solution.</p>
<p>Anyway, for RoR to be able to be an enterprise class programming language and framework using stored procedures and views in an database should be part of core.<br />
I&#8217;m not sure if there are RoR developers that are aware that procedures are best way to implement database logic, except for maybe some trivial models. That&#8217;s why I believe using stored procedures should be supported by core ActiveRecord and defined per each available datrabase adapter to support different usages. One ExecProc! should do it&#8230;<br />
Also did anyone notice availability explicit of START TRANSACTION END TRANSACTION implementations? These are like crucial for any serious developement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ric</title>
		<link>http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-833</link>
		<dc:creator><![CDATA[Ric]]></dc:creator>
		<pubDate>Fri, 13 Feb 2009 10:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://nasir.wordpress.com/2007/12/03/stored-procedures-and-rails/#comment-833</guid>
		<description><![CDATA[Some good ideas here.  Thanks.]]></description>
		<content:encoded><![CDATA[<p>Some good ideas here.  Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
