From 7b939fac409a9f9fcb686487abce8e894e9cf0c0 Mon Sep 17 00:00:00 2001 From: Andriy Utkin Date: Thu, 15 Feb 2024 00:50:14 +0000 Subject: [PATCH] mysql-upgrade: fix 3000011 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. --- misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh b/misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh index 9fb27b77..96b5931b 100755 --- a/misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh +++ b/misc/sql/mysql-upgrade/3000011/ip_manufacturer_lookup.sh @@ -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