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

tasktmpl error [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 ] #118

Open
DavenAaron opened this issue Jul 4, 2019 · 0 comments

Comments

@DavenAaron
Copy link

�[35m(/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/db/tasktmpl.go:62)�[0m
�[33m[2019-07-04 02:47:52]�[0m �[36;1m[0.25ms]�[0m INSERT INTO task_tmpl_vars (task_tmpl_id, name, title, comment, form_type, data_source, default) VALUES
�[36;31m[0 rows affected or returned ]�[0m
[naftis] (1) �[31m2019-07-04 02:47:52 [ERRO] �[0m [service] AddTaskTmplVar fail error:Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
[naftis] (1) �[34m2019-07-04 02:47:52 [INFO] �[0m [OpFailFn] err:sql executed fail
[GIN] 2019/07/04 - 02:47:52 | 500 | 4.095471ms | 172.16.101.225 | POST /api/tasktmpls

�[35m(/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/db/tasktmpl.go:44)�[0m
�[33m[2019-07-04 02:47:52]�[0m �[36;1m[0.68ms]�[0m INSERT INTO task_tmpls (created_at,updated_at,deleted_at,name,content,brief,revision,operator,icon) VALUES ('2019-07-04 02:47:52','2019-07-04 02:47:52',NULL,'test','apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: {{.Host}}
spec:
hosts:

  • reviews
    http:
  • route:
    • destination:
      host: {{.Host}}
      subset: {{.DestinationSubset1}}
      weight: {{.Weight1}}
    • destination:
      host: {{.Host}}
      subset: {{.DestinationSubset2}}
      weight: {{.Weight2}}

','','1','admin','')
�[36;31m[1 rows affected or returned ]�[0m

�[35m(/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/db/tasktmpl.go:62)�[0m
�[33m[2019-07-04 02:47:52]�[0m �[31;1m Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 �[0m

�[35m(/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/db/tasktmpl.go:62)�[0m
�[33m[2019-07-04 02:47:52]�[0m �[36;1m[0.31ms]�[0m INSERT INTO task_tmpl_vars (task_tmpl_id, name, title, comment, form_type, data_source, default) VALUES
�[36;31m[0 rows affected or returned ]�[0m
[naftis] (1) �[31m2019-07-04 02:47:52 [ERRO] �[0m [service] AddTaskTmplVar fail error:Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

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

1 participant