funny error because of missing validate ---------------------------------------
Key: RBATIS-1 URL: http://issues.apache.org/jira/browse/RBATIS-1 Project: iBATIS for Ruby Issue Type: Bug Reporter: David N. Welton --- 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira