You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
What did you do?
If possible, provide a recipe for reproducing the error.
enable plan cache
create table t(a bigint unsigned primary key, b int, c int, key idx_bc(b,c));
insert into t (a, b, c) values (18446744073709551615, 4, 4);
set @p1=18446744073709551615;
set @p2=1;
prepare stmt7 from "select a from t where a = ?";
execute stmt7 using @p2; // fill plan cache
execute stmt7 using @p1;
this question is caused by our plan cache using string datum and lost unsigned type info.
lysu
changed the title
big unsigned bigint primary key with plan cache enable error
big unsigned bigint primary key point-select with plan cache enable error
Apr 10, 2019
no, it is too hard to fix this(fix one side but make another side wrong- -) before we support "full-type-handle" and at last year we say we have a plan to support "full-type-handle", so I give up at that time- -
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
enable plan cache
got
18446744073709551615, 4, 4
rowtidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: