You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let params = params.iter().map(dyn_clone::clone).collect::<Vec<_>>();
342
360
343
-
let conn = self.conn.try_clone()?;// try_clone creates a new connection to the same database
344
-
// this creates a new connection session, requiring resetting the ATTACHments and search_path
345
361
let sql = sql.to_string();
346
362
347
363
let cloned_schema = schema.clone();
348
-
let attachments = self.attachments.clone();
349
364
350
365
let join_handle = tokio::task::spawn_blocking(move || {
351
-
Self::attach(&conn,&attachments)?;// this attach could happen when we clone the connection, but we can't detach after the thread closes because the connection isn't thread safe
0 commit comments