Use a safer $dbh->get_info
[dbsrgits/DBIx-Class-Historic.git] / lib / DBIx / Class / Storage / DBI / ODBC / DB2_400_SQL.pm
index 29e9da9..10cfcc0 100644 (file)
@@ -14,6 +14,8 @@ warn 'Major advances took place in the DBIC codebase since this driver'
   ."\n"
 ;
 
+__PACKAGE__->sql_quote_char('"');
+
 # FIXME
 # Most likely all of this code is redundant and unnecessary. We should
 # be able to simply use base qw/DBIx::Class::Storage::DBI::DB2/;
@@ -26,7 +28,7 @@ sub _dbh_last_insert_id {
     # get the schema/table separator:
     #    '.' when SQL naming is active
     #    '/' when system naming is active
-    my $sep = $dbh->get_info(41);
+    my $sep = $self->_dbh_get_info(41);
     my $sth = $dbh->prepare_cached(
         "SELECT IDENTITY_VAL_LOCAL() FROM SYSIBM${sep}SYSDUMMY1", {}, 3);
     $sth->execute();
@@ -44,7 +46,7 @@ sub _sql_maker_opts {
 
         return {
             limit_dialect => 'FetchFirst',
-            name_sep => $dbh->get_info(41)
+            name_sep => $self->_dbh_get_info(41)
         };
     });
 }