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.
use root execute these sqls:
CREATEUSER 'haha'@'localhost' IDENTIFIED BY '123456';
createdatabaseap;
createdatabasetp;
grant all privileges on ap.* to haha@localhost;
grantselecton tp.* to haha@localhost;
flush privileges;
createtabletp.record( id int,name varchar(128),age int);
insert intotp.record (id,name,age) values (1,"john",18),(2,"lary",19),(3,'lily',18);
createtableap.record( id int,name varchar(128),age int);
insert intoap.record(id) values(1);
then use user haha update
updateap.record t inner jointp.record tt ont.id=tt.idsett.name=tt.name;
CREATEUSER 'haha';
createdatabaseap;
createdatabasetp;
grant all privileges on ap.* to haha;
grantselecton tp.* to haha;
createtabletp.record( id int,name varchar(128),age int);
insert intotp.record (id,name,age) values (1,"john",18),(2,"lary",19),(3,'lily',18);
createtableap.record( id int,name varchar(128),age int);
insert intoap.record(id) values(1);
Then:
$ mysql -uhaha
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.7.25-TiDB-v4.0.0-beta.2-750-g8a661044c TiDB Server (Apache License 2.0) Community Edition, MySQL 5.7 compatible
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;'or'\h' for help. Type '\c' to clear the current input statement.
mysql>updateap.record t inner jointp.record tt ont.id=tt.idsett.name=tt.name;
Query OK, 1 row affected (0.03 sec)
Rows matched: 1 Changed: 1 Warnings: 0
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
use root execute these sqls:
then use user haha update
tidb-server -V
or runselect tidb_version();
on TiDB)?v2.1.7 is dirty just because I modified go.sum,or I get this error when
make
I think I can fix it, but I need some help with test.
The text was updated successfully, but these errors were encountered: