mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-15 04:02:18 +08:00
Handle the case when there is no placeholder
This commit is contained in:
@@ -48,7 +48,7 @@ fn try_bind(input: TokenStream) -> Result<TokenStream> {
|
||||
return Err(err.to_string());
|
||||
}
|
||||
if info.count == 0 {
|
||||
return Ok(input);
|
||||
return Ok(TokenStream::new());
|
||||
}
|
||||
if info.count as usize != info.names.len() {
|
||||
return Err("Mixing named and numbered parameters is not supported.".to_string());
|
||||
|
Reference in New Issue
Block a user