5 V4.98 13 Feb 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
6 Released under both BSD license and Lesser GPL library license.
7 Whenever there is any discrepancy between the two licenses,
8 the BSD license will take precedence.
13 class ADODB_pdo_mssql
extends ADODB_pdo
{
16 var $sysDate = 'convert(datetime,convert(char,GetDate(),102),102)';
17 var $sysTimeStamp = 'GetDate()';
20 function _init($parentDriver)
23 $parentDriver->hasTransactions
= false; ## <<< BUG IN PDO mssql driver
24 $parentDriver->_bindInputArray
= false;
25 $parentDriver->hasInsertID
= true;
30 return ADOConnection
::ServerInfo();
33 function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0)
35 $ret = ADOConnection
::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache);
39 function SetTransactionMode( $transaction_mode )
41 $this->_transmode
= $transaction_mode;
42 if (empty($transaction_mode)) {
43 $this->Execute('SET TRANSACTION ISOLATION LEVEL READ COMMITTED');
46 if (!stristr($transaction_mode,'isolation')) $transaction_mode = 'ISOLATION LEVEL '.$transaction_mode;
47 $this->Execute("SET TRANSACTION ".$transaction_mode);
55 function MetaColumns()