From: Rafael Kitover Date: Wed, 12 Aug 2009 11:51:05 +0000 (+0000) Subject: add TODO comment for mysql X-Git-Tag: 0.04999_08~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e20ec663bbf8f689ce47901ce2e9d19f673a891;p=dbsrgits%2FDBIx-Class-Schema-Loader.git add TODO comment for mysql --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm index e101731..7a2920a 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/mysql.pm @@ -135,6 +135,8 @@ sub _extra_column_info { if ($info->{mysql_values}) { $extra_info{extra}{list} = $info->{mysql_values}; } +# XXX we need to distinguish between DEFAULT CURRENT_TIMESTAMP and DEFAULT 'foo' +# somehow, but DBI column_info doesn't preserve quotes. if ($info->{COLUMN_DEF} =~ /^CURRENT_TIMESTAMP\z/i) { $extra_info{default_value} = \'CURRENT_TIMESTAMP'; }