We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My Database is SQL Server 2019,collation is Chinese_PRC_CI_AI. table test: create table test (id int, name varchar(50), primary key (id))
code: stmt, err := db.Prepare("insert into test(id, name) values(?,?)") stmt.Exec(1, "张三")
result: only "张" is inserted.
solution: modify param.go line 71 case p.isDescribed: sqltype = p.SQLType // size should be column size. if p.Size != 0 { size = p.Size }
The text was updated successfully, but these errors were encountered:
[test] add unit test of alexbrainman#178
c6591cd
size should be column size, to fix alexbrainman#178
df72402
fc58ec5
20dd278
b24f2f5
No branches or pull requests
My Database is SQL Server 2019,collation is Chinese_PRC_CI_AI.
table test:
create table test (id int, name varchar(50), primary key (id))
code:
stmt, err := db.Prepare("insert into test(id, name) values(?,?)")
stmt.Exec(1, "张三")
result:
only "张" is inserted.
solution:
modify param.go line 71
case p.isDescribed:
sqltype = p.SQLType
// size should be column size.
if p.Size != 0 {
size = p.Size
}
The text was updated successfully, but these errors were encountered: