← Back to team overview

mahara-contributors team mailing list archive

[Bug 1877906] A change has been merged

 

Reviewed:  https://reviews.mahara.org/10969
Committed: https://git.mahara.org/mahara/mahara/commit/f8110c1393a7f26da19879c24c1f200358182538
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    20.04_STABLE

commit f8110c1393a7f26da19879c24c1f200358182538
Author: Cecilia Vela Gurovic <ceciliavg@xxxxxxxxxxxxxxx>
Date:   Mon May 11 12:42:04 2020 +1200

Bug 1877906: MariaDB sql change for WHERE NOT EXISTS

behatnotneeded

Change-Id: I38ee481206068b380592d744eb1125382556b980
(cherry picked from commit 30e931239f234d121d6a0a96bac2cdd36cfd7940)

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1877906

Title:
  MariaDB error when creating secret URL

Status in Mahara:
  Fix Committed
Status in Mahara 19.04 series:
  New
Status in Mahara 19.10 series:
  Fix Committed
Status in Mahara 20.04 series:
  Fix Committed
Status in Mahara 20.10 series:
  Fix Committed

Bug description:
  We have the following error on a site with MariaDB and elascticsearch
  set up if we want to create a new secret URL for a view:

  mysqli error: [1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE NOT EXISTS (
                          SELECT 1 FROM "search_elasticsearch_q' at line 2] in EXECUTE("INSERT INTO "search_elasticsearch_queue" (itemid, type)
                      SELECT '1234', 'view' WHERE NOT EXISTS (
                          SELECT 1 FROM "search_elasticsearch_queue" WHERE itemid = '1234' AND type = 'view'
                      )")Command was: INSERT INTO "search_elasticsearch_queue" (itemid, type)
                      SELECT ?, ? WHERE NOT EXISTS (
                          SELECT 1 FROM "search_elasticsearch_queue" WHERE itemid = ? AND type = ?
                      )

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1877906/+subscriptions


References