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】gosql.Exec会创建两条数据 #43

Open
chadiandianwenrou opened this issue Jul 20, 2021 · 1 comment
Open

【bug】gosql.Exec会创建两条数据 #43

chadiandianwenrou opened this issue Jul 20, 2021 · 1 comment

Comments

@chadiandianwenrou
Copy link

gosql.Exec("insert into users(name,email,created_at,updated_at) value(?,?,?,?)","test","[email protected]",time.Now(),time.Now())
通过这个语句 会创建出两条数据, 一条是空数据,一条是完整的

@fifsky
Copy link
Member

fifsky commented Jul 22, 2021

不会的 https://github.com/ilibs/gosql/blob/master/db_test.go#L159 执行这个单元测试只插入了一条

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