accessor for database delimiter
authorAntoine Musso <hashar@free.fr>
Thu, 25 Oct 2012 10:39:32 +0000 (12:39 +0200)
committerAntoine Musso <hashar@free.fr>
Thu, 25 Oct 2012 10:39:32 +0000 (12:39 +0200)
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

index c9d2fda..db050f2 100644 (file)
@@ -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