Open glommer opened 1 year ago
CREATE VIRTUAL TABLE used by many extensions, is not working.
CREATE VIRTUAL TABLE
The problem is that when we parse a statement like this:
CREATE VIRTUAL TABLE t3 using fts5(a,b,c);
it gets transformed inside SQLd to:
CREATE VIRTUAL TABLE t3 using fts5();
I narrowed it down to the parse_inner function in query_analysis.rs.
parse_inner
query_analysis.rs
This statement:
println!("parse inner: {:?}=>{}", c, c.to_string());
prints:
parse inner: Stmt(CreateVirtualTable { if_not_exists: false, tbl_name: QualifiedName { db_name: None, name: Name("t3"), alias: None }, module_name: Name("fts5"), args: None })=>CREATE VIRTUAL TABLE t3 USING fts5 ();
As you can see, the args disappeared. So the to_string() function gave us the wrong results
to_string()
https://github.com/gwenn/lemon-rs/issues/30
CREATE VIRTUAL TABLE
used by many extensions, is not working.The problem is that when we parse a statement like this:
it gets transformed inside SQLd to:
I narrowed it down to the
parse_inner
function inquery_analysis.rs
.This statement:
prints:
As you can see, the args disappeared. So the
to_string()
function gave us the wrong results