[Dbix-class] Detecting changes after ->update(\%) ?
Matt S Trout
dbix-class at trout.me.uk
Wed Aug 8 10:07:02 GMT 2007
On Tue, Aug 07, 2007 at 11:30:06PM +0100, Paul Makepeace wrote:
> I had a look in various places (cookbook, faq, ::resultset) and
> couldn't find whether there's a way to see if any SQL would be
> generated due to a call to update().
Call get_dirty_columns and see if it returns anything.
> PS Errors installing 0.8004,
>
> t/33storage_reconnect......................ok 1/5DBD::SQLite::db
> prepare_cached warning: attempt to prepare on inactive database
> handle(0) at dbdimp.c line 249 [for Statement "SELECT me.artistid,
> me.name FROM artist me ORDER BY name DESC"] at
> /var/tmp/cpan/build/DBIx-Class-0.08004/blib/lib/DBIx/Class/Storage/DBI.pm
> line 1095.
Hmm. What DBD::SQLite have you got?
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/
More information about the DBIx-Class
mailing list