mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-19 09:55:09 +08:00
Deprecate NO_PARAMS in favor of passing an empty array
This commit is contained in:
@@ -157,7 +157,7 @@ impl InnerConnection {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use crate::{Connection, Result, NO_PARAMS};
|
||||
use crate::{Connection, Result};
|
||||
use fallible_streaming_iterator::FallibleStreamingIterator;
|
||||
use std::cmp::Ordering;
|
||||
use unicase::UniCase;
|
||||
@@ -185,7 +185,7 @@ mod test {
|
||||
let mut stmt = db
|
||||
.prepare("SELECT DISTINCT bar COLLATE unicase FROM foo ORDER BY 1")
|
||||
.unwrap();
|
||||
let rows = stmt.query(NO_PARAMS).unwrap();
|
||||
let rows = stmt.query([]).unwrap();
|
||||
assert_eq!(rows.count().unwrap(), 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user