LITERAL op should perform bindtype check
Matt S Trout [Sat, 8 Sep 2018 19:02:59 +0000 (19:02 +0000)]
lib/SQL/Abstract.pm

index b664469..4b49dd9 100644 (file)
@@ -1033,6 +1033,7 @@ sub _where_op_BIND {
 
 sub _where_op_LITERAL {
   my ($self, undef, $literal) = @_;
+  $self->_assert_bindval_matches_bindtype(@{$literal}[1..$#$literal]);
   return @$literal;
 }