$sql_maker->{name_sep} = '';
}
- $sql_maker->clear_renderer;
- $sql_maker->clear_converter;
+ # delete local is 5.12+
+ local @{$sql_maker}{qw(renderer converter)};
+ delete @{$sql_maker}{qw(renderer converter)};
my ($lquote, $rquote, $sep) = map { quotemeta $_ } ($sql_maker->_quote_chars, $sql_maker->name_sep);
my $having_sql = $sql_maker->_render_sqla(where => $attrs->{having});
- $sql_maker->clear_renderer;
- $sql_maker->clear_converter;
-
my %seen_having;
# search for both a proper quoted qualified string, for a naive unquoted scalarref
$sql_maker->{name_sep} = '';
}
- # local is not enough - need to ensure the inner objects get rebuilt
- $sql_maker->clear_renderer;
- $sql_maker->clear_converter;
+ # delete local is 5.12+
+ local @{$sql_maker}{qw(renderer converter)};
+ delete @{$sql_maker}{qw(renderer converter)};
my ($lquote, $rquote, $sep) = map { quotemeta $_ } ($sql_maker->_quote_chars, $sql_maker->name_sep);
],
};
- # local is not enough - need to ensure the inner objects get rebuilt
- $sql_maker->clear_renderer;
- $sql_maker->clear_converter;
-
# throw away empty chunks
$_ = [ map { $_ || () } @$_ ] for values %$to_scan;
$order_dq = $order_dq->{from};
}
- delete local @{$sql_maker}{qw(quote_char renderer converter)};
+ # delete local is 5.12+
+ local @{$sql_maker}{qw(quote_char renderer converter)};
+ delete @{$sql_maker}{qw(quote_char renderer converter)};
return map { [ $sql_maker->_render_dq($_) ] } do {
if ($ident_only) {
$sqla_oracle->{bindtype} = 'columns';
for my $q ('', '"') {
- local $sqla_oracle->{quote_char} = $q;
- $sqla_oracle->clear_renderer;
- $sqla_oracle->clear_converter;
+ # delete local is 5.12+
+ local @{$sqla_oracle}{qw(quote_char renderer converter)};
+ delete @{$sqla_oracle}{qw(quote_char renderer converter)};
+
+ $sqla_oracle->{quote_char} = $q;
my ($sql, @bind) = $sqla_oracle->insert(
'artist',