mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-31 19:12:58 +08:00
Merge pull request #1506 from gwenn/vtab_args
Fix parsing of virtual table parameters
This commit is contained in:
commit
e457af99d2
@ -350,7 +350,9 @@ mod test {
|
||||
fn test_csv_module() -> Result<()> {
|
||||
let db = Connection::open_in_memory()?;
|
||||
csvtab::load_module(&db)?;
|
||||
db.execute_batch("CREATE VIRTUAL TABLE vtab USING csv(filename='test.csv', header=yes)")?;
|
||||
db.execute_batch(
|
||||
"CREATE VIRTUAL TABLE vtab USING csv(filename = 'test.csv', header = yes)",
|
||||
)?;
|
||||
|
||||
{
|
||||
let mut s = db.prepare("SELECT rowid, * FROM vtab")?;
|
||||
|
@ -922,7 +922,7 @@ pub fn parameter(c_slice: &[u8]) -> Result<(&str, &str)> {
|
||||
if let Some(key) = split.next() {
|
||||
if let Some(value) = split.next() {
|
||||
let param = key.trim();
|
||||
let value = dequote(value);
|
||||
let value = dequote(value.trim());
|
||||
return Ok((param, value));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user