set ->sql_maker_class on Pg storage people/dhoss/pg_with_recursive
Rafael Kitover [Wed, 18 Apr 2012 16:03:48 +0000 (12:03 -0400)]
lib/DBIx/Class/SQLMaker/PostgreSQL.pm
lib/DBIx/Class/Storage/DBI/Pg.pm

index 432344c..d1385f7 100644 (file)
@@ -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;
index d38f84c..3124bbd 100644 (file)
@@ -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');