[Bast-commits] r8701 -
DBIx-Class/0.08/branches/oracle_quotes/lib/DBIx/Class/Storage/DBI/Oracle
faxm0dem at dev.catalyst.perl.org
faxm0dem at dev.catalyst.perl.org
Sun Feb 14 08:49:44 GMT 2010
Author: faxm0dem
Date: 2010-02-14 08:49:44 +0000 (Sun, 14 Feb 2010)
New Revision: 8701
Modified:
DBIx-Class/0.08/branches/oracle_quotes/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
Log:
oracle_version
Modified: DBIx-Class/0.08/branches/oracle_quotes/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
===================================================================
--- DBIx-Class/0.08/branches/oracle_quotes/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm 2010-02-14 08:45:08 UTC (rev 8700)
+++ DBIx-Class/0.08/branches/oracle_quotes/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm 2010-02-14 08:49:44 UTC (rev 8701)
@@ -25,20 +25,6 @@
=cut
-my %ora_reserved = map { $_, 1 } qw(
- ACCESS ADD ALL ALTER AND ANY AS ASC AUDIT BETWEEN BY CHAR CHECK
- CLUSTER COLUMN COMMENT COMPRESS CONNECT CREATE CURRENT DATE DECIMAL
- DEFAULT DELETE DESC DISTINCT DROP ELSE EXCLUSIVE EXISTS FILE FLOAT
- FOR FROM GRANT GROUP HAVING IDENTIFIED IMMEDIATE IN INCREMENT
- INDEX INITIAL INSERT INTEGER INTERSECT INTO IS LEVEL LIKE LOCK
- LONG MAXEXTENTS MINUS MLSLABEL MODE MODIFY NOAUDIT NOCOMPRESS NOT
- NOWAIT NULL NUMBER OF OFFLINE ON ONLINE OPTION OR ORDER PCTFREE
- PRIOR PRIVILEGES PUBLIC RAW RENAME RESOURCE REVOKE ROW ROWID ROWNUM
- ROWS SELECT SESSION SET SHARE SIZE SMALLINT START SUCCESSFUL SYNONYM
- SYSDATE TABLE THEN TO TRIGGER UID UNION UNIQUE UPDATE USER VALIDATE
- VALUES VARCHAR VARCHAR2 VIEW WHENEVER WHERE WITH
-);
-
use base qw/DBIx::Class::Storage::DBI/;
use mro 'c3';
@@ -51,6 +37,10 @@
$sqltargs->{quote_table_names} = 0 unless $quote_char;
$sqltargs->{quote_field_names} = 0 unless $quote_char;
+ my $oracle_version = eval { $self->_get_dbh->get_info(18) };
+
+ $sqltargs->{producer_args}{oracle_version} = $oracle_version;
+
$self->next::method($schema, $type, $version, $dir, $sqltargs, @rest);
}
More information about the Bast-commits
mailing list