Comments (4)
能否举个例子呢?
我目前简单复现没有成功:
select * from cashout;
+------+--------+--------+
| a | amount | bet_id |
+------+--------+--------+
| 1 | 1 | 1 |
| 2 | 2 | 2 |
+------+--------+--------+
mysql> select * from bet;
+------+----------+--------+
| b | order_id | bet_id |
+------+----------+--------+
| 11 | 11 | 11 |
| 13 | 13 | 2 |
case1: 结果正确
select sum(amount) from cashout where bet_id in(select bet_id from bet where order_id in (13));
+-------------+
| sum(amount) |
+-------------+
| 2 |
+-------------+
case 2: 结果正确
select sum(amount) from cashout where bet_id in(select bet_id from bet where order_id in (11));
+-------------+
| sum(amount) |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)
case 3: 结果正确
select sum(amount) from cashout where bet_id in(select bet_id from bet where order_id in (15));
+-------------+
| sum(amount) |
+-------------+
| NULL |
+-------------+
1 row in set (0.01 sec)
from cetus.
bet实际上没有bet_id这个字段,这个语句cetus应该报语法错误。但是没有报而是把这个条件忽略了
from cetus.
直连cetus和直连MySQL的结果一致。
from cetus.
这个应该是MySQL本身的问题
from cetus.
Related Issues (20)
- 你好,CMakeList, 132行 SET(MYSQL_LIBRARIES libmysql) HOT 1
- Percona MySQL 8.0.16-7安装报错 HOT 1
- 你好,在proxy_c_read_query_result()函数位置,我希望可以修改返回的结果集
- 你好,在proxy_c_read_query_result()函数位置,我希望可以修改返回的结果集
- 你好, 关于 proxy_c_read_query_result() 函数的一个问题 HOT 2
- jdbc 操作中间件报错 SET of net_write_timeout is not supported HOT 1
- 为什么登录会被拒绝? HOT 3
- cetus 查看后端服务器,slave 的 state 一直是 unknown HOT 3
- 关于查询语句被cetus分配到主库上执行的问题
- cetus负载多个从库时,是什么机制或者算法保证多个从库压力基本保持一致的? HOT 1
- insert into某分片失败,其他分片未rollback HOT 1
- 一个sql,在数据库上正常, 通过cetus后,返回值不一致。cetus本身只保留了一个主库! HOT 2
- Cetus对存在longtext的字段的表数据查询和插入报2013连接丢失错误 HOT 1
- 在el8环境下编译报错 HOT 6
- cetus heart beat 监测频率可配置吗? HOT 2
- src/network-mysqld.c:2589 HOT 9
- 请问为什么后端的数据库状态是unknow呢 HOT 1
- 高并发情况下 ,表情数据偶发写入错误 HOT 1
- 读写分离模式下数据库连接异常:client charset is not supported HOT 2
- cetus支持数据库密码的加密吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cetus.