add TODO comment for mysql
Rafael Kitover [Wed, 12 Aug 2009 11:51:05 +0000 (11:51 +0000)]
lib/DBIx/Class/Schema/Loader/DBI/mysql.pm

index e101731..7a2920a 100644 (file)
@@ -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';
     }