Skip to content

Commit 69045b1

Browse files
cool mate
1 parent c7d8c68 commit 69045b1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/pgt_schema_cache/src/schema_cache.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ impl SchemaCache {
8989

9090
pub fn find_type(&self, name: &str, schema: Option<&str>) -> Option<&PostgresType> {
9191
let sanitized_name = Self::sanitize_identifier(name);
92-
println!("findng type… {}", sanitized_name);
93-
println!("findng schema… {:#?}", schema);
9492
self.types.iter().find(|t| {
9593
t.name == sanitized_name
9694
&& schema

crates/pgt_treesitter/src/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl<'a> TreesitterContext<'a> {
445445
if let Some(txt) = content {
446446
let parts: Vec<&str> = txt.split('.').collect();
447447
// we do not want to set it if we're on the schema or alias node itself
448-
let is_on_schema_node = start + parts[0].len() < self.position;
448+
let is_on_schema_node = start + parts[0].len() >= self.position;
449449
if parts.len() == 2 && !is_on_schema_node {
450450
self.schema_or_alias_name = Some(parts[0].to_string());
451451
}

0 commit comments

Comments
 (0)