Add missing addQuotes() call to masterPosWait()
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 8 Aug 2016 19:36:18 +0000 (12:36 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Mon, 8 Aug 2016 19:36:18 +0000 (12:36 -0700)
Change-Id: Ic7f35920fe10d99b63fdff23dc6e3f7cd4c7ca8b

includes/db/DatabaseMysqlBase.php

index a6f8c31..ee84224 100644 (file)
@@ -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