Skip to content

Instantly share code, notes, and snippets.

@hayajo
Created August 24, 2011 02:46
Show Gist options
  • Save hayajo/1167189 to your computer and use it in GitHub Desktop.
Save hayajo/1167189 to your computer and use it in GitHub Desktop.
DBIx::Skinny::Schema::Loader 0.22 patch
--- DBIx/Skinny/Schema/Loader.pm.org 2011-08-24 10:33:56.000000000 +0900
+++ DBIx/Skinny/Schema/Loader.pm 2011-08-24 10:42:22.000000000 +0900
@@ -58,7 +58,7 @@
connect_options => $connect_options || {},
};
}
- $opts->{dsn} =~ /^dbi:([^:]+):/;
+ $opts->{dsn} =~ /^dbi:([^:]+):/i;
my $driver = $1 or croak "Could not parse DSN";
croak "$driver is not supported by DBIx::Skinny::Schema::Loader yet"
unless grep { /^$driver$/ } $self->supported_drivers;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment