From 12910928640e79f6f0df578a6419c2fee7e0b609 Mon Sep 17 00:00:00 2001 From: Nelo Onyiah Date: Wed, 11 Jul 2018 10:50:36 +0100 Subject: [PATCH] update the dsn in the documented example The double quotes appear to have been left in by accident and can lead to connection errors for those not paying close attention. --- lib/DBIx/Class/Schema/Loader.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 1f639ec79..8d3325743 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -46,7 +46,7 @@ DBIx::Class::Schema::Loader - Create a DBIx::Class::Schema based on a database { debug => 1, dump_directory => './lib', }, - [ 'dbi:Pg:dbname="foo"', 'myuser', 'mypassword', + [ 'dbi:Pg:dbname=foo', 'myuser', 'mypassword', { loader_class => 'MyLoader' } # optionally ], ); @@ -514,7 +514,7 @@ these Examples: make_schema_at( 'New::Schema::Name', { debug => 1 }, - [ 'dbi:Pg:dbname="foo"','postgres','', + [ 'dbi:Pg:dbname=foo','postgres','', { loader_class => 'MyLoader' } # optionally ], ); @@ -525,7 +525,7 @@ these Examples: make_schema_at( 'New::Schema::Name', { debug => 1, dump_directory => './lib' }, - [ 'dbi:Pg:dbname="foo"','postgres','', + [ 'dbi:Pg:dbname=foo','postgres','', { loader_class => 'MyLoader' } # optionally ], );