Is there even a JIRA category for this, or is it dead in the water?
Thanks, Dave On 10/20/06, David Welton <[EMAIL PROTECTED]> wrote:
Hi, rbatis is pretty neat looking for those of us stuck with legacy databases, although it certainly isn't as much fun as ActiveRecord. I created a small patch, because it was giving me a wonky error: --- rbatis/lib/rbatis.rb 2006-10-20 18:49:56.000000000 +0200 +++ legacy/vendor/plugins/rbatis/lib/rbatis.rb 2006-10-20 19:05:37.000000000 +0200 @@ -5,6 +5,7 @@ # License:: Apache Version 2.0 (see http://www.apache.org/licenses/) require 'rbatis/sanitizer' +require 'pp' # Converts Fixnum from a database record. def Fixnum.from_database(record, column) @@ -111,6 +112,10 @@ return nil unless record resultmap.map(record) end + + def validate + raise 'resultmap has not been specified' unless resultmap + end end class Statement I also have a question: It was giving me this error in the first place because I was defining my resultmap after writing the 'statement's. It seems wierd to me that this is necessary... -- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/
-- David N. Welton - http://www.dedasys.com/davidw/ Linux, Open Source Consulting - http://www.dedasys.com/