diff options
author | Erich Eckner <git@eckner.net> | 2019-10-17 10:58:24 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-10-17 10:58:24 +0200 |
commit | 7ea8bac9b1cbe09f425cff4dc22bdb614ae9a65c (patch) | |
tree | b8877592d7b0752bcb85362d261a346f5b4098ce /lib | |
parent | e33ddf9d54ed5906a7dd93075dd1bfae1949856b (diff) | |
download | builder-7ea8bac9b1cbe09f425cff4dc22bdb614ae9a65c.tar.xz |
lib/mysql-functions: mysql_retrieve_static_information(): extract $compression_ids__*
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/mysql-functions | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions index df7de67..9e56319 100755 --- a/lib/mysql-functions +++ b/lib/mysql-functions @@ -1444,6 +1444,14 @@ mysql_retrieve_static_information() { printf '`repository_stabilities`.`name`,"=",' printf '`repository_stabilities`.`id`)' printf ' FROM `repository_stabilities`;\n' + printf 'SELECT REPLACE(CONCAT(' + printf '"compression_ids__",' + printf 'REPLACE(' + printf '`compressions`.`suffix`,".","_"' + printf '),"=",' + printf '`compressions`.`id`' + printf '),"-","_")' + printf ' FROM `compressions`' } | \ mysql_run_query )" |