Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/mysql-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-29 13:55:52 +0200
committerErich Eckner <git@eckner.net>2018-03-29 13:55:52 +0200
commita873c43098e087bcf12ad822b4eae58cc6f38a0e (patch)
treed9d4e3828482c5cb7b10cd22247a134df1ae6529 /lib/mysql-functions
parent979f330103b8ddf354904f4213e507ca4ea3bd12 (diff)
lib/mysql-functions: fix column name
Diffstat (limited to 'lib/mysql-functions')
-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
} | \