Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

1.3.1版本 表名前加库名查询报空指针 #212

Closed
lulonglong opened this issue Dec 24, 2016 · 1 comment
Closed

1.3.1版本 表名前加库名查询报空指针 #212

lulonglong opened this issue Dec 24, 2016 · 1 comment

Comments

@lulonglong
Copy link

select * from dbname.tablename;
表名前加库名会报空指针。原生jdbcTemplate正常运行。
版本是1.3.1,在后续版本已修复请忽略。
若没修复建议进行修复,保持与原生jdbcTemplate的无缝切换。

@hanahmily
Copy link
Contributor

sjdbc的dbname代表的是shardingrule中配置的datasourcerule名字,也就是那个map映射的名字。并不是数据库schema的名字。
另外,这个地方的bug在于对于这种错误提示不友好,并应该抛出空指针异常,而是应该抛出更有意义的异常。

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

No branches or pull requests

2 participants