use Data::Dumper;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils qw(debug header_comment);
-use SQL::Translator::ProducerUtils;
+use SQL::Translator::Generator::Utils;
-my $util = SQL::Translator::ProducerUtils->new( quote_chars => ['[', ']'] );
+my $util = SQL::Translator::Generator::Utils->new( quote_chars => ['[', ']'] );
my %translate = (
date => 'datetime',
use Data::Dumper;
use SQL::Translator::Schema::Constants;
use SQL::Translator::Utils qw(debug header_comment parse_dbms_version);
-use SQL::Translator::ProducerUtils;
-my $util = SQL::Translator::ProducerUtils->new( quote_chars => q(") );
+use SQL::Translator::Generator::Utils;
+my $util = SQL::Translator::Generator::Utils->new( quote_chars => q(") );
our ( $DEBUG, $WARN );
our $VERSION = '1.59';
use Test::More;
-use SQL::Translator::ProducerUtils;
+use SQL::Translator::Generator::Utils;
-my $util = SQL::Translator::ProducerUtils->new(
+my $util = SQL::Translator::Generator::Utils->new(
quote_chars => ['[', ']'],
);
is $util->quote('frew'), '[frew]', 'simple quote works';
is $util->quote('people.frew'), '[people].[frew]', 'namespaced quote works';
-my $single_util = SQL::Translator::ProducerUtils->new(
+my $single_util = SQL::Translator::Generator::Utils->new(
quote_chars => q(|),
);
is $single_util->quote('frew'), '|frew|', 'simple single quote works';
is $single_util->quote('people.frew'), '|people|.|frew|', 'namespaced single quote works';
-my $no_util = SQL::Translator::ProducerUtils->new();
+my $no_util = SQL::Translator::Generator::Utils->new();
is $no_util->quote('frew'), 'frew', 'simple no quote works';
is $no_util->quote('people.frew'), 'people.frew', 'namespaced no quote works';