A query that I have been using for a while is now failing to execute. I do not think I have changed anything with it.I have self-hosted docker container w/ Community v1.9.16.
Having trouble figuring out what this means or how to debug further. Any ideas?
"actionId":"62aa450a2677176b434f38c2"
"requestedAt":"2023-04-27 15:50:30"
"requestParams":{
"Query":{
"value":"BEGIN; INSERT INTO media (media_type, entry_datetime, discovery_notes, short_list) SELECT c.id, NOW(), "", IF(true = true , IF(false = true, 0, 1) , 0) FROM categories c LEFT JOIN category_types ct ON ct.id = c.category_type_id WHERE (c.category = "book") and (ct.category_type = "media type"); SELECT @media_id := MAX(id) from media; INSERT INTO books (media_id, title, year, author_id, country_id, entry_datetime, fiction, history, reference, collection) VALUES (@media_id, "All Systems REd", 2017, 22000328, 21000001, NOW(), IF(true = true , 1 , 0), IF(false = true , 1 , 0), IF(false = true , 1 , 0), IF(false = true , 1 , 0)); INSERT INTO categories_media (media_id, category_id, entry_datetime) VALUES ((SELECT max(id) FROM media) , 10000015, NOW()); COMMIT;"
}
}