Commit 17c18877 authored by Sergei Golubchik's avatar Sergei Golubchik

use normal unique (HA_NOSAME) keys for expression cache

temptables, not "uniques", that are hash-based keys.

sql/sql_expression_cache.cc:
  Don't set uniques (we don't want or need an unique
  constraint on this table)
parent fba96f7c
...@@ -123,7 +123,6 @@ void Expression_cache_tmptable::init() ...@@ -123,7 +123,6 @@ void Expression_cache_tmptable::init()
goto error; goto error;
} }
cache_table->s->keys= 1; cache_table->s->keys= 1;
cache_table->s->uniques= 1;
ref.null_rejecting= 1; ref.null_rejecting= 1;
ref.disable_cache= FALSE; ref.disable_cache= FALSE;
ref.has_record= 0; ref.has_record= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment