From 3d3f8d3832921f99daf8ce1953304763c2e76c62 Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 14 Apr 2006 06:22:09 +0000 Subject: Importing SQLMap + sample + docs. --- .../DataAccess/adodb/drivers/adodb-mssqlpo.inc.php | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 framework/DataAccess/adodb/drivers/adodb-mssqlpo.inc.php (limited to 'framework/DataAccess/adodb/drivers/adodb-mssqlpo.inc.php') diff --git a/framework/DataAccess/adodb/drivers/adodb-mssqlpo.inc.php b/framework/DataAccess/adodb/drivers/adodb-mssqlpo.inc.php new file mode 100644 index 00000000..93d3dd1c --- /dev/null +++ b/framework/DataAccess/adodb/drivers/adodb-mssqlpo.inc.php @@ -0,0 +1,62 @@ +_has_mssql_init) { + ADOConnection::outp( "PrepareSP: mssql_init only available since PHP 4.1.0"); + return $sql; + } + if (is_string($sql)) $sql = str_replace('||','+',$sql); + $stmt = mssql_init($sql,$this->_connectionID); + if (!$stmt) return $sql; + return array($sql,$stmt); + } + + function _query($sql,$inputarr) + { + if (is_string($sql)) $sql = str_replace('||','+',$sql); + return ADODB_mssql::_query($sql,$inputarr); + } +} + +class ADORecordset_mssqlpo extends ADORecordset_mssql { + var $databaseType = "mssqlpo"; + function ADORecordset_mssqlpo($id,$mode=false) + { + $this->ADORecordset_mssql($id,$mode); + } +} +?> \ No newline at end of file -- cgit v1.2.3