Author: spadkins
Date: Tue Nov 16 10:35:27 2010
New Revision: 14527
Modified:
p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm
Log:
add dbi_post_connect_stmt to the list of params that can be in the app.conf file
Modified: p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm
==============================================================================
--- p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm (original)
+++ p5ee/trunk/App-Repository/lib/App/Repository/DBI.pm Tue Nov 16 10:35:27 2010
@@ -187,6 +187,7 @@
if ($self->{dbi_post_connect_stmt}) {
my $debug_sql = $self->{context}{options}{debug_sql};
my $stmts = $self->{dbi_post_connect_stmt};
+print STDERR "stmts=[$stmts]\n";
$stmts =~ s/;$//;
foreach my $stmt (split(/\s*;\s*/, $stmts)) {
$dbh->do($stmt);
@@ -358,7 +359,7 @@
my @opts = qw{
dbdsn dbdriver dbhost dbport dbsocket dbname
- dbuser dbpass dbschema dbioptions
+ dbuser dbpass dbschema dbioptions dbi_post_connect_stmt
};
my $name = $self->{name};