summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/mysql-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index 418f15b..440ba6f 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -904,7 +904,7 @@ mysql_cleanup() {
printf 'SELECT * FROM `files` PARTITION (p%s)' \
"${partition}"
printf ' WHERE `files`.`id`=`file_providers`.`file`'
- printf ' AND `files`.`name_hash`=`file_providers`.`name_hash`'
+ printf ' AND `files`.`name_hash`=`file_providers`.`file_name_hash`'
printf ');\n'
# remove obsolete files
printf '%s FROM `files` PARTITION (p%s)' \
@@ -913,7 +913,7 @@ mysql_cleanup() {
printf 'SELECT * FROM `file_providers` PARTITION (p%s)' \
"${partition}"
printf ' WHERE `files`.`id`=`file_providers`.`file`'
- printf ' AND `files`.`name_hash`=`file_providers`.`name_hash`'
+ printf ' AND `files`.`name_hash`=`file_providers`.`file_name_hash`'
printf ');\n'
done
} | \