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

Error: pq: syntax error at or near "`" #15

Closed
millken opened this issue Sep 30, 2019 · 2 comments
Closed

Error: pq: syntax error at or near "`" #15

millken opened this issue Sep 30, 2019 · 2 comments

Comments

@millken
Copy link

millken commented Sep 30, 2019

``
configs["default"] = &gosql.Config{
Enable: true,
Driver: "postgres",
Dsn: "...",
ShowSql: true,
}

err = gosql.Connect(configs)
_, err = gosql.Table("users").Create(map[string]interface{}{
	"username":      username,
	"status":        1,
})

the log
Query: INSERT INTO users (,status,username) VALUES(?,?);
Args: []interface {}{ 1, "test12345"}
Error: pq: syntax error at or near "`"
Time: 0.00698s
``

@fifsky
Copy link
Member

fifsky commented Oct 8, 2019

Sorry, postgres is not compatible yet

@fifsky fifsky closed this as completed in beb871f Oct 16, 2019
@fifsky
Copy link
Member

fifsky commented Oct 16, 2019

You can try v2.0.1 to try to fix qoutes compatibility problems

https://github.com/ilibs/gosql/releases/tag/v2.0.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

2 participants