Take a look at the dbic Changelog, it's mentioned in there.

Cheers, Alex

On 2012-08-15 18:24, Bill Moseley wrote:
Pinging on this.   Is this new behavior?   I don't remember seeing these 
warnings before -- and I am curious why the calling code needs to do this 
instead of DBIC.   Sorry if I'm missing something here.

On Sun, Aug 5, 2012 at 10:26 AM, Bill Moseley 
<mose...@hank.org<mailto:mose...@hank.org>> wrote:
Running tests saw this message:

DBIx::Class::ResultSet::search(): DateTime objects passed to search() are not 
supported properly (InflateColumn::DateTime formats and settings are not 
respected.) See "Formatting DateTime objects in queries" in 
DBIx::Class::Manual::Cookbook.

Cookbook suggests this:


  my $dtf = $schema->storage->datetime_parser;
  my $rs = $schema->resultset('users')->search(
    {
      signup_date => {
        -between => [
          $dtf->format_datetime($dt_start),
          $dtf->format_datetime($dt_end),
        ],
      }
    },
  );

I'm curious.  If DBIC knows it's a DateTime object and DBIC has a method to 
format it correctly then why is there a warning?  Why not just format it?


--
Bill Moseley
mose...@hank.org<mailto:mose...@hank.org>



--
Bill Moseley
mose...@hank.org<mailto:mose...@hank.org>



_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk



*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be 
privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Reply via email to