From d87d913c2964b64f614eaa729fb21519a109fd1a Mon Sep 17 00:00:00 2001 From: ahwelp Date: Tue, 12 Mar 2019 06:32:16 +0000 Subject: [PATCH] Update 'src/DDLWrapper/Db/Adapter/PdoAdapter.php' --- src/DDLWrapper/Db/Adapter/PdoAdapter.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/DDLWrapper/Db/Adapter/PdoAdapter.php b/src/DDLWrapper/Db/Adapter/PdoAdapter.php index da56092..5f8ead0 100644 --- a/src/DDLWrapper/Db/Adapter/PdoAdapter.php +++ b/src/DDLWrapper/Db/Adapter/PdoAdapter.php @@ -88,7 +88,21 @@ abstract class PdoAdapter implements AdapterInterface } return $this->connection; } - + + /** + * Gets the table prefix + * + * @return \PDO + */ + public function getTablePrefix() + { + if(isset($this->connection->prefix)){ + return $this->connection->prefix; + } + return ''; + } + + /** * Sets the command start time *