package SQL::Translator::Parser::DBI;
# -------------------------------------------------------------------
-# $Id: DBI.pm,v 1.9 2006-05-24 14:45:21 schiffbruechige Exp $
+# $Id: DBI.pm 1440 2009-01-17 16:31:57Z jawnsy $
# -------------------------------------------------------------------
-# Copyright (C) 2002-4 SQLFairy Authors
+# Copyright (C) 2002-2009 SQLFairy Authors
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
use strict;
use DBI;
-use vars qw($VERSION @EXPORT);
-$VERSION = sprintf "%d.%02d", q$Revision: 1.9 $ =~ /(\d+)\.(\d+)/;
+use vars qw(@EXPORT);
use constant DRIVERS => {
mysql => 'MySQL',
use SQL::Translator::Utils qw(debug);
-use SQL::Translator::Parser::DBI::MySQL;
-use SQL::Translator::Parser::DBI::SQLServer;
-use SQL::Translator::Parser::DBI::SQLite;
-use SQL::Translator::Parser::DBI::Sybase;
-use SQL::Translator::Parser::DBI::PostgreSQL;
-<<<<<<< DBI.pm
-use SQL::Translator::Parser::DBI::DB2;
-=======
-use SQL::Translator::Parser::DBI::Oracle;
->>>>>>> 1.8
-
use base qw(Exporter);
@EXPORT = qw(parse);
my $pkg = "SQL::Translator::Parser::DBI::$driver";
my $sub = $pkg.'::parse';
- #
- # I can't get this to work. I seem to have to have the "use"
- # statements above.
- #
-# $tr->load( $pkg );
+ $tr->load( $pkg );
eval {
no strict 'refs';