[CP] [to #53785684] Fix bug, add assign SQL (actually var_val) transform to dynamic SQL when var_val has user variables.

This commit is contained in:
swjtu-wenxiang
2024-02-05 14:12:18 +00:00
committed by ob-robot
parent 6c30986754
commit c93c104250
6 changed files with 116 additions and 1 deletions

View File

@ -6324,3 +6324,4 @@ select rpad("", cast(c1 as decimal), "123") from t1;
+--------------------------------------+
drop table t1;
SET GLOBAL max_allowed_packet = 16777216;

View File

@ -54,6 +54,7 @@ while ($left <= $cnt)
}
--disable_query_log
let $max_allowed_packet=`select @@global.max_allowed_packet`;
SET GLOBAL max_allowed_packet = 4194304;
connection default;
disconnect conn_admin;
@ -130,3 +131,4 @@ select rpad("", cast(c1 as decimal), "123") from t1;
drop table t1;
--sleep 2
eval SET GLOBAL max_allowed_packet = $max_allowed_packet;