diff options
author | Erich Eckner <git@eckner.net> | 2018-03-29 13:55:52 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-03-29 13:55:52 +0200 |
commit | a873c43098e087bcf12ad822b4eae58cc6f38a0e (patch) | |
tree | d9d4e3828482c5cb7b10cd22247a134df1ae6529 | |
parent | 979f330103b8ddf354904f4213e507ca4ea3bd12 (diff) | |
download | builder-a873c43098e087bcf12ad822b4eae58cc6f38a0e.tar.xz |
lib/mysql-functions: fix column name
-rwxr-xr-x | lib/mysql-functions | 4 |
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 } | \ |