Skip to content
Discussion options

You must be logged in to vote

Since version 0.22.3 the answer is that anyone of these is going to work:

connection.execute("INSERT INTO A ([EXAMPLE]) VALUES (?);", &None::<&str>.into_parameter());
connection.execute("INSERT INTO A ([EXAMPLE]) VALUES (?);", &VarCharSlice::NULL);
connection.execute("INSERT INTO A ([EXAMPLE]) VALUES (?);", (&VarCharSlice::NULL,));
connection.execute("INSERT INTO A ([EXAMPLE]) VALUES (?);", &VarCharBox::null());
connection.execute("INSERT INTO A ([EXAMPLE]) VALUES (?);", &VarCharArray::<1>::NULL);

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@grovesNL
Comment options

@pacman82
Comment options

@pacman82
Comment options

@grovesNL
Comment options

@pacman82
Comment options

Comment options

You must be logged in to vote
1 reply
@grovesNL
Comment options

Answer selected by pacman82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants