There was an error while loading. Please reload this page.
1 parent b190619 commit 2488d30Copy full SHA for 2488d30
crates/pgt_completions/src/providers/columns.rs
@@ -1256,5 +1256,23 @@ mod tests {
1256
)
1257
.await;
1258
}
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
+ }
1277
1278
0 commit comments