From fb5dc5c29897e850a60590d858de1cf393ba9d16 Mon Sep 17 00:00:00 2001 From: Geoff Munn Date: Sun, 11 Oct 2009 22:04:24 +0000 Subject: [PATCH] API CHANGE: database extensions now supported by MSSQL --- code/MSSQLDatabase.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 5accf12..6ff47e6 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -1311,6 +1311,22 @@ class MSSQLDatabase extends Database { public function supportsTransactions(){ return $this->supportsTransactions; } + + /* + * This is a quick lookup to discover if the database supports particular extensions + * Currently, MSSQL supports no extensions + */ + public function supportsExtensions($extensions=Array('partitions', 'tablespaces', 'clustering')){ + if(isset($extensions['partitions'])) + return false; + elseif(isset($extensions['tablespaces'])) + return false; + elseif(isset($extensions['clustering'])) + return false; + else + return false; + } + /* * Start a prepared transaction * See http://developer.postgresql.org/pgdocs/postgres/sql-set-transaction.html for details on transaction isolation options