"TYPO3 4.0.1: typo3_src-4.0.1/typo3/sysext/adodb/adodb/drivers/adodb-mssqlpo.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 00016 // security - hide paths 00017 if (!defined('ADODB_DIR')) die(); 00018 00019 00020 /* 00021 The big difference between mssqlpo and it's parent mssql is that mssqlpo supports 00022 the more standard || string concatenation operator. 00023 */ 00024 00025 include_once(ADODB_DIR.'/drivers/adodb-mssql.inc.php'); 00026 00027 class ADODB_mssqlpo extends ADODB_mssql { 00028 var $databaseType = "mssqlpo"; 00029 var $concat_operator = '||'; 00030 00031 function ADODB_mssqlpo() 00032 { 00033 ADODB_mssql::ADODB_mssql(); 00034 } 00035 00036 function PrepareSP($sql) 00037 { 00038 if (!$this->_has_mssql_init) { 00039 ADOConnection::outp( "PrepareSP: mssql_init only available since PHP 4.1.0"); 00040 return $sql; 00041 } 00042 if (is_string($sql)) $sql = str_replace('||','+',$sql); 00043 $stmt = mssql_init($sql,$this->_connectionID); 00044 if (!$stmt) return $sql; 00045 return array($sql,$stmt); 00046 } 00047 00048 function _query($sql,$inputarr) 00049 { 00050 if (is_string($sql)) $sql = str_replace('||','+',$sql); 00051 return ADODB_mssql::_query($sql,$inputarr); 00052 } 00053 } 00054 00055 class ADORecordset_mssqlpo extends ADORecordset_mssql { 00056 var $databaseType = "mssqlpo"; 00057 function ADORecordset_mssqlpo($id,$mode=false) 00058 { 00059 $this->ADORecordset_mssql($id,$mode); 00060 } 00061 } 00062 ?>