Skip to content

Commit

Permalink
Hot fix type checker if eval expression without table.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Jun 12, 2024
1 parent 2eba0f0 commit 6110042
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Change Log
==========

Version 0.22.1 *(2024-06-12)*
-----------------------------

* Hot fix type checker if eval expression without table.

Version 0.22.0 *(2024-06-12)*
-----------------------------

Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gitql"
authors = ["AmrDeveloper"]
version = "0.22.0"
version = "0.22.1"
edition = "2021"
description = "A SQL like query language to perform queries on .git files"
license = "MIT"
Expand Down Expand Up @@ -29,8 +29,8 @@ gix = { version = "0.63.0", default-features = false }
gitql-core = { path = "./crates/gitql-core", version = "0.2.0" }
gitql-std = { path = "./crates/gitql-std", version = "0.2.0" }
gitql-ast = { path = "./crates/gitql-ast", version = "0.20.0" }
gitql-parser = { path = "./crates/gitql-parser", version = "0.21.0" }
gitql-parser = { path = "./crates/gitql-parser", version = "0.21.1" }
gitql-engine = { path = "./crates/gitql-engine", version = "0.22.0" }
gitql-cli = { path = "./crates/gitql-cli", version = "0.22.0" }
gitql-cli = { path = "./crates/gitql-cli", version = "0.22.1" }
gix = { workspace = true, features = ["blob-diff", "max-performance"] }
atty = "0.2.14"
4 changes: 2 additions & 2 deletions crates/gitql-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gitql-cli"
authors = ["AmrDeveloper"]
version = "0.22.0"
version = "0.22.1"
edition = "2021"
description = "GitQL Command line interface (CLI) components"
repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-cli"
Expand All @@ -12,6 +12,6 @@ categories = ["command-line-utilities"]
[dependencies]
gitql-core = { path = "../gitql-core", version = "0.2.0" }
gitql-ast = { path = "../gitql-ast", version = "0.20.0" }
gitql-parser = { path = "../gitql-parser", version = "0.21.0" }
gitql-parser = { path = "../gitql-parser", version = "0.21.1" }
comfy-table = "7.1.0"
termcolor = "1.4.1"
2 changes: 1 addition & 1 deletion crates/gitql-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gitql-parser"
authors = ["AmrDeveloper"]
version = "0.21.0"
version = "0.21.1"
edition = "2021"
description = "GitQL parser"
repository = "https://github.com/amrdeveloper/gql/tree/main/crates/gitql-parser"
Expand Down
4 changes: 4 additions & 0 deletions crates/gitql-parser/src/type_checker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ pub fn type_check_projection_symbols(
.as_boxed());
}

if table_name.is_empty() {
return Ok(());
}

let count = projection_names.len();
let table_fields = &env.schema.tables_fields_names[table_name];
for i in 0..count {
Expand Down

0 comments on commit 6110042

Please sign in to comment.