From 515d1d5e63a760e338b69d650caa4882dd494556 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 2 Jan 2024 20:49:57 +0000 Subject: postgres does not like binaries to be string while mariadb/mysql does not seem to care - let's see --- include/attach.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/attach.php b/include/attach.php index 9baebe2a0..8bbd73dde 100644 --- a/include/attach.php +++ b/include/attach.php @@ -2773,7 +2773,7 @@ function attach_move($channel_id, $resource_id, $new_folder_hash, $newname = '', intval($channel_id) ); - q("update photo set content = CASE imgscale WHEN 0 THEN '%s' ELSE CONCAT('%s', '-', imgscale) END where resource_id = '%s' and uid = %d and os_storage = 1", + q("update photo set content = CASE imgscale WHEN 0 THEN %s ELSE CONCAT(%s, '-', imgscale) END where resource_id = '%s' and uid = %d and os_storage = 1", dbescbin($newstorepath), dbescbin($newstorepath), dbesc($resource_id), -- cgit v1.2.3