projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
e46bcbe
)
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
patch
|
blob
|
blame
|
history
lib/DBIx/Class/Storage/DBI/Pg.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/SQLMaker/PostgreSQL.pm
b/lib/DBIx/Class/SQLMaker/PostgreSQL.pm
index
432344c
..
d1385f7
100644
(file)
--- 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
(file)
--- 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');