issue warning for DateTimes passed to ->search
authorRafael Kitover <rkitover@cpan.org>
Wed, 18 Jan 2012 14:56:18 +0000 (09:56 -0500)
committerRafael Kitover <rkitover@cpan.org>
Wed, 18 Jan 2012 14:56:18 +0000 (09:56 -0500)
commite103821341284d4adddf43954dc4be7c92b46160
treea13c88e492ee15add7ac7b36ab6244bc58a61a7d
parentc40f97742c724386cf5888497c6fcc73a48c576a
issue warning for DateTimes passed to ->search

Issue a carp_unique when DateTime objects are detected in binds in
::Storage::DBI with a pointer to the Cookbook recipe for formatting
DateTime objects for queries.

Add a test for the warning in t/inflate/datetime.t, which already has
TODO tests for DTs in ->search.
Changes
lib/DBIx/Class/Storage/DBI.pm
t/inflate/datetime.t