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

Sql日至格式错误 #20

Open
jiyis opened this issue Dec 16, 2015 · 2 comments
Open

Sql日至格式错误 #20

jiyis opened this issue Dec 16, 2015 · 2 comments

Comments

@jiyis
Copy link

jiyis commented Dec 16, 2015

非常感谢能提供这么方便的工具,但是我在调试sql的时候发现直接alert除了日志格式错误,请问这是什么原因呢?我直接拿demo中的测试也是这样。其他都可以正常输出。是因为对sql的explain只支持TP和OneThink吗?希望能解答下,再次感谢!

image

//调试sql
$link=mysql_connect( 'localhost:3306' , 'root' , '' , true ) ;
mysql_select_db('test',$link);
$sql="SELECT* FROM user";
slog($sql,$link);

@luofei614
Copy link
Owner

你升级一下看看这个问题好了没?

@jiyis
Copy link
Author

jiyis commented Jan 4, 2016

Hi luofei,

    依旧是同样的问题,日志格式错误,我发现在调用sendLog这个方法的后面,把$logs数组中的空元素值去除掉就好了。

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

No branches or pull requests

2 participants