6 use SQL::Translator::ProducerUtils;
8 my $util = SQL::Translator::ProducerUtils->new(
9 quote_chars => ['[', ']'],
12 is $util->quote('frew'), '[frew]', 'simple quote works';
13 is $util->quote('people.frew'), '[people].[frew]', 'namespaced quote works';
15 my $single_util = SQL::Translator::ProducerUtils->new(
19 is $single_util->quote('frew'), '|frew|', 'simple single quote works';
20 is $single_util->quote('people.frew'), '|people|.|frew|', 'namespaced single quote works';
22 my $no_util = SQL::Translator::ProducerUtils->new();
24 is $no_util->quote('frew'), 'frew', 'simple no quote works';
25 is $no_util->quote('people.frew'), 'people.frew', 'namespaced no quote works';