Skip Menu |
 

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 32655
Status: rejected
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: astra_here [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Download (untitled) / with headers
text/plain 1.7k
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
Post to the mailing list please.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.