Skip to content

Commit 2488d30

Browse files
without schema
1 parent b190619 commit 2488d30

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

crates/pgt_completions/src/providers/columns.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,5 +1256,23 @@ mod tests {
12561256
)
12571257
.await;
12581258
}
1259+
1260+
{
1261+
// should suggest "n".name
1262+
let query = format!(
1263+
r#"select {} from names "n";"#,
1264+
QueryWithCursorPosition::cursor_marker()
1265+
);
1266+
assert_complete_results(
1267+
query.as_str(),
1268+
vec![CompletionAssertion::CompletionTextAndRange(
1269+
r#""n".name"#.into(),
1270+
TextRange::new(7.into(), 7.into()),
1271+
)],
1272+
None,
1273+
&pool,
1274+
)
1275+
.await;
1276+
}
12591277
}
12601278
}

0 commit comments

Comments
 (0)