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-09-03 16:02:23 +0200
committerErich Eckner <git@eckner.net>2018-09-03 16:02:23 +0200
commit5d40a41998efed19853372d2b2b9e68f202ecc31 (patch)
treefd40438ed82aa4015d7b34ef98af949ca14301db /lib/mysql-functions
parente34595ccd15eaf0f9722efde27c6aa9c8722e773 (diff)
lib/mysql-functions: remove obsolete todo, fix typo
Diffstat (limited to 'lib/mysql-functions')
-rwxr-xr-xlib/mysql-functions7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mysql-functions b/lib/mysql-functions
index aa6a5ee..2bc2fbe 100755
--- a/lib/mysql-functions
+++ b/lib/mysql-functions
@@ -9,9 +9,6 @@ if [ -z "${base_dir}" ]; then
. '../lib/load-configuration'
fi
-# TODO: replace most/all insert-select queries by separate select and insert
-# queries
-
# base64_encode_each encode each line of stdin with base64
base64_encode_each() {
@@ -435,8 +432,8 @@ mysql_generate_package_metadata() {
printf ' WHERE `links`.`type`="arch";\n'
printf 'INSERT IGNORE INTO `binary_packages_in_repositories` ('
- printf ' `package`'
- printf ' `repository`'
+ printf ' `package`,'
+ printf '`repository`'
printf ') SELECT'
printf ' `binary_packages`.`id`,'
printf '%s' \