Fix a number of SQL queries to work with ANSI_QUOTES

This commit is contained in:
Baron Schwartz
2012-06-06 23:36:07 -04:00
parent b9304dabb5
commit aa42210f72
3 changed files with 2 additions and 134 deletions

View File

@@ -204,7 +204,7 @@ sub optimize_xor {
do { # Try different positions till sliced result equals non-sliced.
PTDEBUG && _d('Trying slice', $opt_slice);
$dbh->do('SET @crc := "", @cnt := 0');
$dbh->do(q{SET @crc := '', @cnt := 0});
my $slices = $self->make_xor_slices(
query => "\@crc := $func('a')",
crc_wid => $crc_wid,