RDBI/rdbi-driver-mysql — Issue #5: Can't create more than max_prepared_stmt_count statements
Author: bsanders1979
Created: 2011-10-20 18:48:25+00:00
State: open

In my script, I'm caching the results of Database.execute. Script runs, then craps out because of the above message. If I try calling Result.finish, I get this error:

/usr/local/lib/ruby/gems/1.9.1/gems/rdbi-driver-mysql-0.9.2/lib/rdbi/driver/mysql.rb:329:in free_result': Mysql::Stmt object is already closed (Mysql::Error)
from /usr/local/lib/ruby/gems/1.9.1/gems/rdbi-driver-mysql-0.9.2/lib/rdbi/driver/mysql.rb:329:infinish'
from /usr/local/lib/ruby/gems/1.9.1/gems/rdbi-0.9.1/lib/rdbi/result.rb:279:in `finish'

Perhaps I'm doing something wrong? Suggestions? Thanks!