Skip Menu |

This queue is for tickets about the DateTime-Format-DBI CPAN distribution.

Report information
The Basics
Id: 26201
Status: resolved
Worked: 30 min
Priority: 0/
Queue: DateTime-Format-DBI

People
Owner: CFAERBER [...] cpan.org
Requestors: andreas.marienborg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in:
  • 0.031
  • 0.01
  • 0.02
  • 0.03
  • 0.03a
Fixed in: 0.032_20080913



Subject: No SQLite driver support
Attached patch makes it use MySQL for SQLite, which works afaik
Subject: datetime-format-dbi.01.patch
Only in DateTime-Format-DBI-0.031.fixed: Makefile Only in DateTime-Format-DBI-0.031.fixed: blib diff -ur DateTime-Format-DBI-0.031/lib/DateTime/Format/DBI.pm DateTime-Format-DBI-0.031.fixed/lib/DateTime/Format/DBI.pm --- DateTime-Format-DBI-0.031/lib/DateTime/Format/DBI.pm 2003-11-03 00:17:38.000000000 +0100 +++ DateTime-Format-DBI-0.031.fixed/lib/DateTime/Format/DBI.pm 2007-04-09 20:12:40.000000000 +0200 @@ -14,6 +14,7 @@ # lowercase for case-insensitivity! 'mysql' => 'DateTime::Format::MySQL', 'pg' => 'DateTime::Format::Pg', + 'sqlite' => 'DateTime::Format::MySQL', ); sub new { Only in DateTime-Format-DBI-0.031.fixed: pm_to_blib
On Mo. 09. Apr. 2007, 14:15:43, ANDREMAR wrote: Show quoted text
> Attached patch makes it use MySQL for SQLite, which works afaik
SQLite assumes UTC for date calculations, whereas MySQL assumes local time. Further, SQLite happily stores and returns any date format the database creator chose. It would be better to write DateTime::Format::SQLite first.