Skip to content

Commit 0d94d0b

Browse files
authored
Update sqlparser to 0.41 (#666)
1 parent 358724f commit 0d94d0b

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ serde_derive = "1"
1919
regex = "1"
2020
num_cpus = "1"
2121
once_cell = "1"
22-
sqlparser = {version = "0.34", features = ["visitor"] }
22+
sqlparser = { version = "0.41", features = ["visitor"] }
2323
log = "0.4"
2424
arc-swap = "1"
2525
parking_lot = "0.12.1"
@@ -47,9 +47,12 @@ serde_json = "1"
4747
itertools = "0.10"
4848
clap = { version = "4.3.1", features = ["derive", "env"] }
4949
tracing = "0.1.37"
50-
tracing-subscriber = { version = "0.3.17", features = ["json", "env-filter", "std"]}
50+
tracing-subscriber = { version = "0.3.17", features = [
51+
"json",
52+
"env-filter",
53+
"std",
54+
] }
5155
lru = "0.12.0"
5256

5357
[target.'cfg(not(target_env = "msvc"))'.dependencies]
5458
jemallocator = "0.5.0"
55-

src/query_router.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,21 +499,26 @@ impl QueryRouter {
499499
table: _,
500500
on: _,
501501
returning: _,
502+
ignore: _,
502503
} => {
503504
// Not supported in postgres.
504505
assert!(or.is_none());
505506
assert!(partitioned.is_none());
506507
assert!(after_columns.is_empty());
507508

508509
Self::process_table(table_name, &mut table_names);
509-
Self::process_query(source, &mut exprs, &mut table_names, &Some(columns));
510+
if let Some(source) = source {
511+
Self::process_query(source, &mut exprs, &mut table_names, &Some(columns));
512+
}
510513
}
511514
Delete {
512515
tables,
513516
from,
514517
using,
515518
selection,
516519
returning: _,
520+
order_by: _,
521+
limit: _,
517522
} => {
518523
if let Some(expr) = selection {
519524
exprs.push(expr.clone());

0 commit comments

Comments
 (0)