Fix delimiter for postgres
This commit is contained in:
parent
725971784b
commit
68f2b5bedb
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ func (s *SQLStore) latestsBlocksSubquery(c store.Container) sq.SelectBuilder {
|
|||
FromSelect(internalQuery, "a").
|
||||
Where(sq.Eq{"rn": 1}).
|
||||
Where(sq.Eq{"delete_at": 0}).
|
||||
Where(sq.Eq{"coalesce(workspace_id, \"\")": c.WorkspaceID})
|
||||
Where(sq.Eq{"coalesce(workspace_id, '')": c.WorkspaceID})
|
||||
}
|
||||
|
||||
func (s *SQLStore) GetBlocksWithParentAndType(c store.Container, parentID string, blockType string) ([]model.Block, error) {
|
||||
|
|
Loading…
Reference in a new issue