properly format table and "if not exists" support

This commit is contained in:
Pere Diaz Bou 2024-11-16 17:02:53 +01:00
parent 090615b289
commit d1dee484df
3 changed files with 54 additions and 9 deletions

View file

@ -186,7 +186,6 @@ impl Connection {
match cmd {
Cmd::Stmt(stmt) => {
let program = Rc::new(translate::translate(
sql.as_str(),
&*self.schema.borrow(),
stmt,
self.header.clone(),
@ -212,7 +211,6 @@ impl Connection {
match cmd {
Cmd::Stmt(stmt) => {
let program = Rc::new(translate::translate(
sql.as_str(),
&*self.schema.borrow(),
stmt,
self.header.clone(),
@ -224,7 +222,6 @@ impl Connection {
}
Cmd::Explain(stmt) => {
let program = translate::translate(
sql.as_str(),
&*self.schema.borrow(),
stmt,
self.header.clone(),
@ -259,7 +256,6 @@ impl Connection {
match cmd {
Cmd::Explain(stmt) => {
let program = translate::translate(
sql.as_str(),
&*self.schema.borrow(),
stmt,
self.header.clone(),
@ -271,7 +267,6 @@ impl Connection {
Cmd::ExplainQueryPlan(_stmt) => todo!(),
Cmd::Stmt(stmt) => {
let program = translate::translate(
sql.as_str(),
&*self.schema.borrow(),
stmt,
self.header.clone(),