mirror of
https://github.com/friendica/friendica
synced 2025-04-27 17:10:10 +00:00
"ANY_VALUE" is removed
This commit is contained in:
parent
4c402f6af4
commit
f83f61f7ac
6 changed files with 20 additions and 59 deletions
|
@ -322,12 +322,12 @@ class Photos extends \Friendica\Module\BaseProfile
|
|||
$photos = $this->database->toArray($this->database->p(
|
||||
"SELECT
|
||||
`resource-id`,
|
||||
ANY_VALUE(`id`) AS `id`,
|
||||
ANY_VALUE(`filename`) AS `filename`,
|
||||
ANY_VALUE(`type`) AS `type`,
|
||||
ANY_VALUE(`album`) AS `album`,
|
||||
max(`scale`) AS `scale`,
|
||||
ANY_VALUE(`created`) AS `created`
|
||||
MIN(`id`) AS `id`,
|
||||
MIN(`filename`) AS `filename`,
|
||||
MIN(`type`) AS `type`,
|
||||
MIN(`album`) AS `album`,
|
||||
MAX(`scale`) AS `scale`,
|
||||
MIN(`created`) AS `created`
|
||||
FROM `photo`
|
||||
WHERE `uid` = ?
|
||||
AND `photo-type` = ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue