Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
SQLX_OFFLINE=true
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/postgres
1 change: 1 addition & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- "Cargo.lock"
- "rust-toolchain.toml"
- "rustfmt.toml"
- ".env"
# or in js packages
- "packages/**"
# or in workflows
Expand Down
13 changes: 6 additions & 7 deletions crates/pgls_lsp/tests/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -858,19 +858,18 @@ async fn test_execute_statement(test_db: PgPool) -> Result<()> {
server.load_configuration().await?;

let users_tbl_exists = async || {
let result = sqlx::query!(
sqlx::query_scalar::<_, bool>(
r#"
select exists (
select 1 as exists
select 1
from pg_catalog.pg_tables
where tablename = 'users'
);
"#
)
"#,
)
.fetch_one(&test_db.clone())
.await;

result.unwrap().exists.unwrap()
.await
.unwrap()
};

assert!(
Expand Down
Loading