[Catalyst] DBIx::Class::ResultSet::all(): DBI Exception: DBD::DB2::db prepare_cached failed: [IBM][CLI Driver][DB2/AIX64] SQL0204N DBUSERNAME.ACCOUNT_VIEW is an undefined name.

2012-04-26 Thread Kenneth S Mclane
I do not understand this error at all. It is tacking the DB user name onto the model name. Any hints why this is happening? This is my list sub: sub list :Local { my ($self, $c) = @_; $c-stash(accounts = $c-model('ORANGES::AccountView')-all); $c-stash(template =

Re: [Catalyst] DBIx::Class::ResultSet::all(): DBI Exception: DBD::DB2::db prepare_cached failed: [IBM][CLI Driver][DB2/AIX64] SQL0204N DBUSERNAME.ACCOUNT_VIEW is an undefined name.

2012-04-26 Thread David Schmidt
$rs-all returns an array so you should call it in list context like this. $c-stash( accounts = [ $c-model('ORANGES::AccountView')-all ] ); no idea if that changesyour error msg but it is a start. david On 26 April 2012 21:05, Kenneth S Mclane ksmcl...@us.ibm.com wrote: I do not understand