new approach to logging database access and upgraded adodb
[openemr.git] / library / adodb / drivers / adodb-pdo_mssql.inc.php
blob6e2be467f58368048dd77a4922798b9bc1bca67b
1 <?php
4 /*
5 V5.14 8 Sept 2011 (c) 2000-2011 John Lim (jlim#natsoft.com). 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.
9 Set tabs to 8.
11 */
13 class ADODB_pdo_mssql extends ADODB_pdo {
15 var $hasTop = 'top';
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;
28 function ServerInfo()
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);
36 return $ret;
39 function SetTransactionMode( $transaction_mode )
41 $this->_transmode = $transaction_mode;
42 if (empty($transaction_mode)) {
43 $this->Execute('SET TRANSACTION ISOLATION LEVEL READ COMMITTED');
44 return;
46 if (!stristr($transaction_mode,'isolation')) $transaction_mode = 'ISOLATION LEVEL '.$transaction_mode;
47 $this->Execute("SET TRANSACTION ".$transaction_mode);
50 function MetaTables($ttype=false,$showSchema=false,$mask=false)
52 return false;
55 function MetaColumns($table,$normalize=true)
57 return false;