# Fix SQL error in recent projects query \(\#37220\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b473f4a1304bc1a4b2e911cc6063167ede3a281c)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b473f4a1304bc1a4b2e911cc6063167ede3a281c

Requested commit: b473f4a1304bc1a4b2e911cc6063167ede3a281c

Commit: b473f4a1304bc1a4b2e911cc6063167ede3a281c

Tree: 73faef040a849dc29402b72470189304c6c8f6ee

Author: Finn Evers

Committer: GitHub

## Message

````
Fix SQL error in recent projects query (#37220)

Follow-up to https://github.com/zed-industries/zed/pull/37035

In the WSL PR, `ssh_connection_id` was renamed to
`remote_connection_id`. However, that was not accounted for within the
`recent_workspaces_query`. This caused a query fail:

```
2025-08-30T14:45:44+02:00 ERROR [recent_projects] Prepare call failed for query:
SELECT
  workspace_id,
  paths,
  paths_order,
  ssh_connection_id
FROM
  workspaces
WHERE
  paths IS NOT NULL
  OR ssh_connection_id IS NOT NULL
ORDER BY
  timestamp DESC

Caused by:
    Sqlite call failed with code 1 and message: Some("no such column: ssh_connection_id")
```

and resulted in no recent workspaces being shown within the recent
projects picker.

This change updates the column name to the new name and thus fixes the
error.

Release Notes:

- N/A
````

## Parents

- [7d0a303785fd73677c255fb15657e6af8dc1e3e8](https://git.cafe/gitcafe/zed/commit/7d0a303785fd73677c255fb15657e6af8dc1e3e8?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b473f4a1304bc1a4b2e911cc6063167ede3a281c?format=markdown)
