From: Rafael Kitover Date: Wed, 18 Apr 2012 16:03:48 +0000 (-0400) Subject: set ->sql_maker_class on Pg storage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b3a5c2d5514a90e3cc48d290266735333fdbc221;p=dbsrgits%2FDBIx-Class.git set ->sql_maker_class on Pg storage --- diff --git a/lib/DBIx/Class/SQLMaker/PostgreSQL.pm b/lib/DBIx/Class/SQLMaker/PostgreSQL.pm index 432344c..d1385f7 100644 --- a/lib/DBIx/Class/SQLMaker/PostgreSQL.pm +++ b/lib/DBIx/Class/SQLMaker/PostgreSQL.pm @@ -1,4 +1,4 @@ -package +package # hide from PAUSE DBIx::Class::SQLMaker::PostgreSQL; use strict; @@ -66,6 +66,6 @@ sub _with_recursive { } return wantarray ? ($sql, @bind) : $sql; - } + 1; diff --git a/lib/DBIx/Class/Storage/DBI/Pg.pm b/lib/DBIx/Class/Storage/DBI/Pg.pm index d38f84c..3124bbd 100644 --- a/lib/DBIx/Class/Storage/DBI/Pg.pm +++ b/lib/DBIx/Class/Storage/DBI/Pg.pm @@ -11,6 +11,7 @@ use DBIx::Class::Carp; use Try::Tiny; use namespace::clean; +__PACKAGE__->sql_maker_class('DBIx::Class::SQLMaker::PostgreSQL'); __PACKAGE__->sql_limit_dialect ('LimitOffset'); __PACKAGE__->sql_quote_char ('"'); __PACKAGE__->datetime_parser_type ('DateTime::Format::Pg');