objective categorical abstract machine language personal data server
65
fork

Configure Feed

Select the types of activity you want to include in your feed.

Don't use the sqlite concat function

futurGH 2d3148c7 3320e095

+2 -2
+2 -2
pegasus/lib/user_store.ml
··· 186 186 [%rapper 187 187 get_many 188 188 {sql| SELECT @string{path}, @CID{cid}, @Blob{data}, @string{since} FROM records 189 - WHERE path LIKE concat(%string{collection}, '/', '%') 189 + WHERE path LIKE %string{collection} || '/' || '%' 190 190 AND (since < %string{cursor} OR %string{cursor} = '') 191 191 ORDER BY since DESC LIMIT %int{limit} 192 192 |sql}] ··· 198 198 [%rapper 199 199 get_many 200 200 {sql| SELECT @string{path}, @CID{cid}, @Blob{data}, @string{since} FROM records 201 - WHERE path LIKE concat(%string{collection}, '/', '%') 201 + WHERE path LIKE %string{collection} || '/' || '%' 202 202 AND (since > %string{cursor} OR %string{cursor} = '') 203 203 ORDER BY since ASC LIMIT %int{limit} 204 204 |sql}]