"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/drivers/adodb-pdo_mssql.inc.php Source File", "datetime" => "Sat Dec 2 19:22:26 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
00001 <?php 00002 00003 00004 /* 00005 V4.90 8 June 2006 (c) 2000-2006 John Lim (jlim#natsoft.com.my). All rights reserved. 00006 Released under both BSD license and Lesser GPL library license. 00007 Whenever there is any discrepancy between the two licenses, 00008 the BSD license will take precedence. 00009 Set tabs to 8. 00010 00011 */ 00012 00013 class ADODB_pdo_mssql extends ADODB_pdo { 00014 00015 var $hasTop = 'top'; 00016 var $sysDate = 'convert(datetime,convert(char,GetDate(),102),102)'; 00017 var $sysTimeStamp = 'GetDate()'; 00018 00019 00020 function _init($parentDriver) 00021 { 00022 00023 $parentDriver->hasTransactions = false; ## <<< BUG IN PDO mssql driver 00024 $parentDriver->_bindInputArray = false; 00025 $parentDriver->hasInsertID = true; 00026 } 00027 00028 function ServerInfo() 00029 { 00030 return ADOConnection::ServerInfo(); 00031 } 00032 00033 function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0) 00034 { 00035 $ret = ADOConnection::SelectLimit($sql,$nrows,$offset,$inputarr,$secs2cache); 00036 return $ret; 00037 } 00038 00039 function SetTransactionMode( $transaction_mode ) 00040 { 00041 $this->_transmode = $transaction_mode; 00042 if (empty($transaction_mode)) { 00043 $this->Execute('SET TRANSACTION ISOLATION LEVEL READ COMMITTED'); 00044 return; 00045 } 00046 if (!stristr($transaction_mode,'isolation')) $transaction_mode = 'ISOLATION LEVEL '.$transaction_mode; 00047 $this->Execute("SET TRANSACTION ".$transaction_mode); 00048 } 00049 00050 function MetaTables() 00051 { 00052 return false; 00053 } 00054 00055 function MetaColumns() 00056 { 00057 return false; 00058 } 00059 00060 } 00061 ?>