Subject: | Error messages thrown are not complete |
Date: | Fri, 25 Jan 2008 11:57:39 -0800 (PST) |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | sowmya swaminathan <astra_here [...] yahoo.com> |
Hi,
We upgraded DBIx-Class from 0.07002 to the latest version, 0.08008 and found that the error messages thrown don't provide complete info when connect/insert/update fails.
This is the code and this will fail because of unique constraint violation:
my $user = $db->resultset('User')->create({id => 'slj',
email => 'slj@yahoo.com'});
Error message thrown by latest version of DBIx-Class:
=====================================
Can't call method "resolve" on an undefined value at /usr/local/perl/new_lib//DBIx/Class/Row.pm line 707.
Error message thrown by Version 0.07002 of DBIx-Class:
=======================================
DBD::ODBC::st execute failed: [unixODBC][TimesTen][TimesTen 7.0.1.0.0 ODBC Driver][TimesTen]TT0907: Unique constraint (TTUNIQUE_34) violated at Rowid <0x018d19ac> -- file "ttree.c", lineno 4077, procedure "sbTtInsert" (SQL-23000)(DBD: st_execute/SQLExecute err=-1) at /usr/local/perl/5.8.7/lib/DBIx/Class/Storage/DBI.pm line 771.
DBIx::Class::PK::Auto::insert(): Error executing 'INSERT INTO users (email, id) VALUES (?, ?, ?, ?)': [unixODBC][TimesTen][TimesTen 7.0.1.0.0 ODBC Driver][TimesTen]TT0907: Unique constraint (TTUNIQUE_34) violated at Rowid <0x018d19ac> -- file "ttree.c", lineno 4077, procedure "sbTtInsert" (SQL-23000)(DBD: st_execute/SQLExecute err=-1) at ../Local/User.pm line 298
DBIx-Class version used: 0.08008
Perl version: 5.8.7
Operating system: Linux, Red Hat Enterprise Linux AS release 3, 2.4.21-37.0.0.4.ELhugemem, i686
Could someone provide a solution to this issue?
Thanks,
Libitha
Show quoted text
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs