Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix SQL error in recent projects query (#37220)
Finn Eversb473f4a1304b
diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rsindex 160823f547f..ef5a86a2762 100644--- a/crates/workspace/src/persistence.rs+++ b/crates/workspace/src/persistence.rs@@ -1112,11 +1112,11 @@ impl WorkspaceDb {query! {fn recent_workspaces_query() -> Result<Vec<(WorkspaceId, String, String, Option<u64>)>> {- SELECT workspace_id, paths, paths_order, ssh_connection_id+ SELECT workspace_id, paths, paths_order, remote_connection_idFROM workspacesWHEREpaths IS NOT NULL OR- ssh_connection_id IS NOT NULL+ remote_connection_id IS NOT NULLORDER BY timestamp DESC}}@@ -1128,11 +1128,11 @@ impl WorkspaceDb {Ok(self.session_workspaces_query(session_id)?.into_iter()- .map(|(paths, order, window_id, ssh_connection_id)| {+ .map(|(paths, order, window_id, remote_connection_id)| {(PathList::deserialize(&SerializedPathList { paths, order }),window_id,- ssh_connection_id.map(RemoteConnectionId),+ remote_connection_id.map(RemoteConnectionId),)}).collect())