[Bast-commits] r3183 - trunk/DBIx-Class-Schema-Loader/lib/DBIx/Class/Schema/Loader/DBI

blblack at dev.catalyst.perl.org blblack at dev.catalyst.perl.org
Mon Apr 9 14:12:54 GMT 2007


Author: blblack
Date: 2007-04-09 14:12:53 +0100 (Mon, 09 Apr 2007)
New Revision: 3183

Modified:
   trunk/DBIx-Class-Schema-Loader/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
Log:
fix case-sensitivity in UNIQUE parsing for SQLite

Modified: trunk/DBIx-Class-Schema-Loader/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
===================================================================
--- trunk/DBIx-Class-Schema-Loader/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm	2007-04-08 01:27:20 UTC (rev 3182)
+++ trunk/DBIx-Class-Schema-Loader/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm	2007-04-09 13:12:53 UTC (rev 3183)
@@ -77,12 +77,12 @@
         # Grab reference
         chomp $col;
 
-        if($col =~ /^(.*)\s+UNIQUE/) {
+        if($col =~ /^(.*)\s+UNIQUE/i) {
             my $colname = $1;
             $colname =~ s/\s+.*$//;
             push(@uniqs, [ "${colname}_unique" => [ lc $colname ] ]);
         }
-        elsif($col =~/^\s*UNIQUE\s*\(\s*(.*)\)/) {
+        elsif($col =~/^\s*UNIQUE\s*\(\s*(.*)\)/i) {
             my $cols = $1;
             $cols =~ s/\s+$//;
             my @cols = map { lc } split(/\s*,\s*/, $cols);




More information about the Bast-commits mailing list