[jifty-devel] Database Help

Scott T. Hildreth shildreth at allantgroup.com
Fri Sep 29 09:44:35 EDT 2006


On Fri, 2006-09-29 at 08:29 +0200, Wolfgang Kinkeldei wrote:
> Hallo,
> 
> On 29.09.2006 um 01:17 Scott T. Hildreth wrote:
> 
> > I was testing the Jifty::DBI examples,
> >
> > ############################################################
> >
> > use strict;
> > use warnings;
> >
> > use Jifty::DBI::Handle;
> > use TestTable;
> 
> [...]
> 
> > when the the load_by_cols executes I get the Oracle error,
> >
> >    ORA-00942: table or view does not exist
> >
> > couldn't execute the query 'SELECT  * FROM testtables WHERE qnum = ?'
> 
> The table name is guessed from the last part of the Model's class  
> name by building a plural of the last part. This is done in  
> Jifty::DBI::Record by the sub "_guess_table_name".
> 
> Jifty::Manual::Cookbook suggests to build a sub "_guess_table_name"  
> in YourApp::Record (or in YourApp::TestTable to let this just work  
> for this class) to override the default behaviour.

  Thanks Wolfgang.
> 
> 
> Regards,
> 
> Wolfgang Kinkeldei
> 
-- 
Scott T. Hildreth <shildreth at allantgroup.com>


More information about the jifty-devel mailing list