Skip to content
New issue

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

NPE when select with in clause,and no details in logs #243

Closed
actiontech-bot opened this issue Sep 3, 2017 · 0 comments
Closed

NPE when select with in clause,and no details in logs #243

actiontech-bot opened this issue Sep 3, 2017 · 0 comments

Comments

@actiontech-bot
Copy link
Member

actiontech-bot commented Sep 3, 2017

Raised by: @sevenFH

mysql> select * from mytest_test1 where id in (100,99,98,102) group by id;
+-----+-----------+---------+----------+-------------+--------+
| id  | productID | saleNum | postion  | total_price | person |
+-----+-----------+---------+----------+-------------+--------+
| 100 |     12100 |    1148 | Panama   |      104.12 | fff    |
|  98 |     11860 |    1061 | Malawi   |      149.50 | bbb    |
| 102 |     12340 |    1176 | Canada   |      113.62 | ddd    |
|  99 |     11980 |    1052 | Suriname |      121.21 | ccc    |
+-----+-----------+---------+----------+-------------+--------+
4 rows in set (0.00 sec)

mysql> select * from mytest_test1 where id in (100,99,98,102) order by id;
ERROR 1105 (HY000): java.lang.NullPointerException
mysql> select count(id) from mytest_test1 where id in (100,99,98,102) ;
ERROR 1105 (HY000): java.lang.NullPointerException
mysql> select id,saleNum+10 as saleNums from mytest_test1 where id in (101) order by id;
ERROR 1105 (HY000): java.lang.NullPointerException
mysql> select count(id) from mytest_test1 where id in (100,99,98,102) ;
ERROR 1105 (HY000): java.lang.NullPointerException

No relevant information in mycat.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants