From e543a0d47fef6c07343a20a804dfb3f6d32120c7 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 8 Aug 2016 12:36:18 -0700 Subject: [PATCH] Add missing addQuotes() call to masterPosWait() Change-Id: Ic7f35920fe10d99b63fdff23dc6e3f7cd4c7ca8b --- includes/db/DatabaseMysqlBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/db/DatabaseMysqlBase.php b/includes/db/DatabaseMysqlBase.php index a6f8c311ee..ee84224eaa 100644 --- a/includes/db/DatabaseMysqlBase.php +++ b/includes/db/DatabaseMysqlBase.php @@ -798,7 +798,7 @@ abstract class DatabaseMysqlBase extends Database { // Call doQuery() directly, to avoid opening a transaction if DBO_TRX is set if ( $this->useGTIDs && $pos->gtids ) { // Wait on the GTID set (MariaDB only) - $gtidArg = implode( ',', $pos->gtids ); + $gtidArg = $this->addQuotes( implode( ',', $pos->gtids ) ); $res = $this->doQuery( "SELECT MASTER_GTID_WAIT($gtidArg, $timeout)" ); } else { // Wait on the binlog coordinates -- 2.20.1