Remove all "magic number" DBI get_info calls from the codebase
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI / DB2.pm
index aea773f..7634eb6 100644 (file)
@@ -18,7 +18,7 @@ sub sql_name_sep {
   my $v = $self->next::method(@_);
 
   if (! defined $v and ! @_) {
-    $v = $self->next::method($self->_dbh_get_info(41) || '.');
+    $v = $self->next::method($self->_dbh_get_info('SQL_QUALIFIER_NAME_SEPARATOR') || '.');
   }
 
   return $v;