We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please answer these questions before submitting your issue. Thanks!
mysql> CREATE TABLE t1(col102 bigint(20),col1 bigint(20) GENERATED ALWAYS AS (col102 ^ 10) STORED NOT NULL,PRIMARY KEY (col1) USING BTREE); Query OK, 0 rows affected (0.10 sec) mysql> INSERT INTO `t1` VALUES (11111, DEFAULT); INSERT INTO `t1` VALUES (22222, DEFAULT); INSERT INTO `t1` VALUES (33333, DEFAULT); Query OK, 1 row affected (0.01 sec) Query OK, 1 row affected (0.10 sec) Query OK, 1 row affected (0.00 sec) mysql> select * from t1; +--------+-------+ | col102 | col1 | +--------+-------+ | 11111 | 11117 | | 22222 | 22212 | | 33333 | 33343 | +--------+-------+ 3 rows in set (0.04 sec)
mysql> prepare stmt from 'select col1 from t1 where col1 in (?, ?, ?);'; Query OK, 0 rows affected (0.00 sec) mysql> set @a=11117, @b=11117, @c=11117; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt using@a,@b,@c; +-------+ | col1 | +-------+ | 11117 | +-------+ 1 row in set (0.05 sec) mysql> set @a=11117, @b=22212, @c=33343; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt using@a,@b,@c; +-------+ | col1 | +-------+ | 11117 | | 22212 | | 33343 | +-------+ 3 rows in set (0.04 sec)
mysql> prepare stmt from 'select col1 from t1 where col1 in (?, ?, ?);'; Query OK, 0 rows affected (0.00 sec) mysql> set @a=11117, @b=11117, @c=11117; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt using@a,@b,@c; +-------+ | col1 | +-------+ | 11117 | +-------+ 1 row in set (0.05 sec) mysql> set @a=11117, @b=22212, @c=33343; Query OK, 0 rows affected (0.00 sec) mysql> execute stmt using@a,@b,@c; +--------+ | col102 | +--------+ | 11117 | +--------+ 1 row in set (0.05 sec)
Release Version: v4.0.0-beta.2-2302-gb42a6f449-dirty Edition: Community Git Commit Hash: b42a6f449a49e6a68360b607a5de497a2f64faa8 Git Branch: master UTC Build Time: 2021-03-08 12:03:16 GoVersion: go1.13 Race Enabled: false TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306 Check Table Before Drop: false
The text was updated successfully, but these errors were encountered:
/pick-up
Sorry, something went wrong.
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: