-
Notifications
You must be signed in to change notification settings - Fork 141
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
only half of unicode string is inserted. #178
Comments
tooilxui
added a commit
to tooilxui/odbc
that referenced
this issue
Jun 7, 2022
tooilxui
added a commit
to tooilxui/odbc
that referenced
this issue
Jun 7, 2022
tooilxui
added a commit
to tooilxui/odbc
that referenced
this issue
Jun 7, 2022
tooilxui
added a commit
to tooilxui/odbc
that referenced
this issue
Jun 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: