Fix --where with one nibble. Update chunk_index.t.

This commit is contained in:
Daniel Nichter
2011-12-27 11:12:40 -07:00
parent 66c0abfe8e
commit f122861808
9 changed files with 46 additions and 36 deletions

View File

@@ -95,7 +95,7 @@ sub new {
. ($args{select} ? $args{select}
: join(', ', map { $q->quote($_) } @cols))
. " FROM " . $q->quote(@{$tbl}{qw(db tbl)})
. ($where ? " AND ($where)" : '')
. ($where ? " WHERE $where" : '')
. " /*checksum table*/";
MKDEBUG && _d('One nibble statement:', $nibble_sql);
@@ -104,7 +104,7 @@ sub new {
. ($args{select} ? $args{select}
: join(', ', map { $q->quote($_) } @cols))
. " FROM " . $q->quote(@{$tbl}{qw(db tbl)})
. ($where ? " AND ($where)" : '')
. ($where ? " WHERE $where" : '')
. " /*explain checksum table*/";
MKDEBUG && _d('Explain one nibble statement:', $explain_nibble_sql);