This commit is contained in:
parent
84c41dda4d
commit
2e1fbd00be
3 changed files with 90 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ impl HydratedContact {
|
|||
let raw = sqlx::query_as!(
|
||||
RawHydratedContact,
|
||||
r#"select id, birthday, lives_with, manually_freshened_at as "manually_freshened_at: String", (
|
||||
select string_agg(name,'\x1c' order by sort)
|
||||
select string_agg(name,x'1c' order by sort)
|
||||
from names where contact_id = c.id
|
||||
) as names, (
|
||||
select jes.date from journal_entries jes
|
||||
|
|
@ -124,7 +124,7 @@ impl HydratedContact {
|
|||
let contacts = sqlx::query_as!(
|
||||
RawHydratedContact,
|
||||
r#"select id, birthday, lives_with, manually_freshened_at as "manually_freshened_at: String", (
|
||||
select string_agg(name,'\x1c' order by sort)
|
||||
select string_agg(name,x'1c' order by sort)
|
||||
from names where contact_id = c.id
|
||||
) as names, (
|
||||
select jes.date from journal_entries jes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue