From 74869fe26d75a11c47bb54d3f380988f7e11b7c6 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Thu, 25 Oct 2012 12:39:32 +0200 Subject: [PATCH] accessor for database delimiter The command delimiter is a protected propery which prevents us form getting it outside of Database scope. This patch add a public accessor getDelimiter() so we can access it. Change-Id: I676d7ed9765444366fdf3dddb07c535807dabf52 --- includes/db/Database.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes/db/Database.php b/includes/db/Database.php index c9d2fda111..db050f2df5 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -290,6 +290,13 @@ abstract class DatabaseBase implements DatabaseType { return $this->getServerVersion(); } + /** + * @return string: command delimiter used by this database engine + */ + public function getDelimiter() { + return $this->delimiter; + } + /** * Boolean, controls output of large amounts of debug information. * @param $debug bool|null -- 2.20.1