TYPO3 CMS  TYPO3_7-6
adodb-mssqlpo.inc.php
Go to the documentation of this file.
1 <?php
18 // security - hide paths
19 if (!defined('ADODB_DIR')) die();
20 
21 
22 /*
23  The big difference between mssqlpo and it's parent mssql is that mssqlpo supports
24  the more standard || string concatenation operator.
25 */
26 
27 include_once(ADODB_DIR.'/drivers/adodb-mssql.inc.php');
28 
29 class ADODB_mssqlpo extends ADODB_mssql {
30  var $databaseType = "mssqlpo";
31  var $concat_operator = '||';
32 
33  function PrepareSP($sql, $param = true)
34  {
35  if (!$this->_has_mssql_init) {
36  ADOConnection::outp( "PrepareSP: mssql_init only available since PHP 4.1.0");
37  return $sql;
38  }
39  if (is_string($sql)) $sql = str_replace('||','+',$sql);
40  $stmt = mssql_init($sql,$this->_connectionID);
41  if (!$stmt) return $sql;
42  return array($sql,$stmt);
43  }
44 
45  function _query($sql,$inputarr=false)
46  {
47  if (is_string($sql)) $sql = str_replace('||','+',$sql);
48  return ADODB_mssql::_query($sql,$inputarr);
49  }
50 }
51 
53  var $databaseType = "mssqlpo";
54  function __construct($id,$mode=false)
55  {
56  parent::__construct($id,$mode);
57  }
58 }
_query($sql, $inputarr=false)
__construct($id, $mode=false)
PrepareSP($sql, $param=true)
$sql
Definition: server.php:84
_query($sql, $inputarr=false)