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中包含1左边那个引号[`],就会报错 #45

Closed
figozhu opened this issue Oct 25, 2018 · 1 comment
Closed

SQL中包含1左边那个引号[`],就会报错 #45

figozhu opened this issue Oct 25, 2018 · 1 comment
Labels
duplicate This issue or pull request already exists not a bug

Comments

@figozhu
Copy link

figozhu commented Oct 25, 2018

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
./soar -query "SELECT f1 + f2 AS `total_num` FROM tb"
  1. What did you expect to see?
    能正常解析

  2. What did you see instead?

SELECT  
  f1  + f2  AS  total_num  : command  not  found  
FROM  
  tb

MySQL执行出错

syntax error at position 30 near ':'

  1. What version of are you using (soar -version)?
    Version: 2018-10-23 16:27:51 +0800 @7519019
    Branch: master
    Compile: 2018-10-23 18:26:17 +0800 by go version go1.10.4 linux/amd64
    GitDirty: 105
@withlin
Copy link
Contributor

withlin commented Oct 25, 2018

#33

@martianzhang martianzhang added duplicate This issue or pull request already exists not a bug labels Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists not a bug
Projects
None yet
Development

No branches or pull requests

3 participants