Skip to content

Commit

Permalink
add U16String for chinese text test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pacman82 committed Sep 10, 2023
1 parent dbd6c08 commit 4d71e0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion odbc-api/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3792,7 +3792,8 @@ fn chinese_text_argument_nvarchar(profile: &Profile) {
let insert_sql = table.sql_insert();

// When
conn.execute(&insert_sql, &"您好".into_parameter()).unwrap();
let arg = U16String::from_str("您好"); // Narrow build will fail for MSSQL without this line.
conn.execute(&insert_sql, &arg.into_parameter()).unwrap();

// Then
let cursor = conn
Expand Down

0 comments on commit 4d71e0f

Please sign in to comment.