r22004 - in /trunk/libtime-piece-mysql-perl: debian/changelog lib/Time/Piece/MySQL.pm
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Fri Jun 20 19:17:54 UTC 2008
Author: gregoa
Date: Fri Jun 20 19:17:54 2008
New Revision: 22004
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=22004
Log:
Revert the directly applied fix for MySQL 4.1+, fixed upstream.
Modified:
trunk/libtime-piece-mysql-perl/debian/changelog
trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm
Modified: trunk/libtime-piece-mysql-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtime-piece-mysql-perl/debian/changelog?rev=22004&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/debian/changelog (original)
+++ trunk/libtime-piece-mysql-perl/debian/changelog Fri Jun 20 19:17:54 2008
@@ -13,6 +13,7 @@
[ gregor herrmann ]
* New upstream release.
+ * Revert the directly applied fix for MySQL 4.1+, fixed upstream.
-- Damyan Ivanov <dmn at debian.org> Sat, 26 Jan 2008 10:16:03 +0200
Modified: trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm?rev=22004&op=diff
==============================================================================
--- trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm (original)
+++ trunk/libtime-piece-mysql-perl/lib/Time/Piece/MySQL.pm Fri Jun 20 19:17:54 2008
@@ -67,9 +67,8 @@
}
sub from_mysql_timestamp {
+ # From MySQL version 4.1, timestamps are returned as datetime strings
my ($class, $timestamp) = @_;
- # from MySQL 4.1 onward, timestamps are punctuated like datetimes
- $timestamp =~ s/[-: ]//g;
my $length = length $timestamp;
return from_mysql_datetime(@_) if $length == 19;
# most timestamps have 2-digit years, except 8 and 14 char ones
More information about the Pkg-perl-cvs-commits
mailing list