From: Rafael Kitover Date: Tue, 17 May 2011 14:00:35 +0000 (-0400) Subject: make Oracle trigger queries safe for coderef connect_infos X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fcb52f084cfd136ebd017f1faac89bd8d6c25dee;p=dbsrgits%2FDBIx-Class-Historic.git make Oracle trigger queries safe for coderef connect_infos --- diff --git a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm index ea93e29..12a14d3 100644 --- a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm +++ b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm @@ -158,7 +158,7 @@ sub _dbh_get_autoinc_seq { my ( $schema, $table ) = $source_name =~ /( (?:${ql})? \w+ (?:${qr})? ) \. ( (?:${ql})? \w+ (?:${qr})? )/x; # if no explicit schema was requested - use the default schema (which in the case of Oracle is the db user) - $schema ||= uc( ($self->_dbi_connect_info||[])->[1] || ''); + $schema ||= \'= USER'; my ($sql, @bind) = $sql_maker->select ( 'ALL_TRIGGERS',