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

[ bug ] sql查询->show create table xxxx;不能查询了 #355

Closed
jerryhu1234 opened this issue Jul 30, 2019 · 2 comments
Closed

[ bug ] sql查询->show create table xxxx;不能查询了 #355

jerryhu1234 opened this issue Jul 30, 2019 · 2 comments
Labels
area/frontend bug Something isn't working

Comments

@jerryhu1234
Copy link
Contributor

在提交 issue 前,请查阅以下资源,请先进行搜索来保证没有类似的 issue。
文档 | FAQ

重现步骤

期待结果和实际结果

期待结果:
可以显示查询结果
实际结果:
Uncaught TypeError: Cannot read property '1' of null
at display_data ((index):945)
at Object.success ((index):1083)
at u (jquery.min.a09e13ee94d5.js:2)
at Object.fireWith [as resolveWith] (jquery.min.a09e13ee94d5.js:2)
at k (jquery.min.a09e13ee94d5.js:2)
at XMLHttpRequest. (jquery.min.a09e13ee94d5.js:2)
display_data @ (index):945
success @ (index):1083
u @ jquery.min.a09e13ee94d5.js:2
fireWith @ jquery.min.a09e13ee94d5.js:2
k @ jquery.min.a09e13ee94d5.js:2
(anonymous) @ jquery.min.a09e13ee94d5.js:2
load (async)
send @ jquery.min.a09e13ee94d5.js:2
ajax @ jquery.min.a09e13ee94d5.js:2
sqlquery @ (index):1066
(anonymous) @ (index):902
dispatch @ jquery.min.a09e13ee94d5.js:2
y.handle @ jquery.min.a09e13ee94d5.js:2

版本信息

应用版本/分支:
V1.6.6
部署方式:Docker

@LeoQuote LeoQuote added bug Something isn't working area/frontend labels Jul 30, 2019
@LeoQuote
Copy link
Collaborator

已复现, 复现步骤:

打开查询页面, 随意选择一个数据库, 输入 show create table XXX ,点击查询

后端返回正常, 前端报错:

TypeError: result.full_sql.match(...) is nullsqlquery:957:58
    display_data http://139.199.0.191/sqlquery/:957
    success http://139.199.0.191/sqlquery/:1095
    jQuery 4

报错的相关源码:

success: function (data) {
display_data(data)
},

function display_data(data) {
var result = data.data;
//获取当前的标签页,如果当前不在执行结果页,则默认新增一个页面

@hhyo
Copy link
Owner

hhyo commented Jul 30, 2019

不以分号结尾可以查,等下版本修复

@hhyo hhyo closed this as completed in c8162d9 Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants