We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ad93e6 commit 6fde412Copy full SHA for 6fde412
crates/pgls_lsp/tests/server.rs
@@ -858,19 +858,18 @@ async fn test_execute_statement(test_db: PgPool) -> Result<()> {
858
server.load_configuration().await?;
859
860
let users_tbl_exists = async || {
861
- let result = sqlx::query!(
+ sqlx::query_scalar::<_, bool>(
862
r#"
863
select exists (
864
- select 1 as exists
+ select 1
865
from pg_catalog.pg_tables
866
where tablename = 'users'
867
- );
868
- "#
+ )
+ "#,
869
)
870
.fetch_one(&test_db.clone())
871
- .await;
872
-
873
- result.unwrap().exists.unwrap()
+ .await
+ .unwrap()
874
};
875
876
assert!(
0 commit comments