Showing 1 changed files with 6 additions and 2 deletions
+6 -2
lib/DBIx/Custom.pm
... ...
@@ -1080,11 +1080,15 @@ sub values_clause {
1080 1080
     my $safety = $self->safety_character;
1081 1081
     my @columns;
1082 1082
     my @placeholders;
1083
+    my $qp = $self->_q('');
1084
+    my $q = substr($qp, 0, 1);
1085
+    my $p = substr($qp, 1, 1);
1086
+    
1083 1087
     for my $column (sort keys %$param) {
1084 1088
         croak qq{"$column" is not safety column name } . _subname
1085 1089
           unless $column =~ /^[$safety\.]+$/;
1086
-        my $column_quote = $self->_q($column);
1087
-        $column_quote =~ s/\./$self->_q(".")/e;
1090
+        my $column_quote = "$q$column$p";
1091
+        $column_quote =~ s/\./$p.$q/;
1088 1092
         push @columns, $column_quote;
1089 1093
         
1090 1094
         my $func = $wrap->{$column} || sub { $_[0] };