Skip to content

Commit

Permalink
mysql-upgrade: fix 3000011
Browse files Browse the repository at this point in the history
Quotes around literal strings disappeared at shell level, making MySQL
think they are expressions.

Changed the outer quoting to double quotes and dropped the backticks
around the table name.
  • Loading branch information
andrey-utkin committed Feb 15, 2024
1 parent fce49bc commit 7b939fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# Enable live lookups of IP camera manufacturers (pulled from our API)

echo '
INSERT INTO `GlobalSettings` VALUES ('G_DATA_SOURCE','live');
' | mysql -h"$host" -D"$dbname" -u"$user" -p"$password"
echo "
INSERT INTO GlobalSettings VALUES ('G_DATA_SOURCE','live');
" | mysql -h"$host" -D"$dbname" -u"$user" -p"$password"

exit 0

0 comments on commit 7b939fa

Please sign in to comment.