Skip to content

Commit fedf049

Browse files
committed
REMOVEME: Point to wip diesel branch
1 parent 5232a8f commit fedf049

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ members = [
6363
]
6464

6565
[patch.crates-io]
66-
diesel = { git = "http://github.com/diesel-rs/diesel", rev = "793de72" }
66+
diesel = { git = "http://github.com/wattsense/diesel", "branch" = "optimize_owned_row"}

src/sync_connection_wrapper.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ where
125125
{
126126
self.execute_with_prepared_query(source.as_query(), |conn, query| {
127127
use diesel::row::IntoOwnedRow;
128-
let mut cache = None;
128+
let mut cache = <<<C as LoadConnection>::Row<'_, '_> as IntoOwnedRow<
129+
<C as Connection>::Backend,
130+
>>::Cache as Default>::default();
129131
conn.load(&query).map(|c| {
130132
c.map(|row| row.map(|r| IntoOwnedRow::into_owned(r, &mut cache)))
131133
.collect::<Vec<QueryResult<O>>>()

0 commit comments

Comments
 (0)