00001 <?php 00002 /* 00003 * $Id: MSSQLStatement.php,v 1.4 2004/06/13 02:31:07 hlellelid Exp $ 00004 * 00005 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00006 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00007 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 00008 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 00009 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 00010 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 00011 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00012 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00013 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00014 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00015 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00016 * 00017 * This software consists of voluntary contributions made by many individuals 00018 * and is licensed under the LGPL. For more information please see 00019 * <http://creole.phpdb.org>. 00020 */ 00021 00022 require_once 'creole/common/StatementCommon.php'; 00023 require_once 'creole/Statement.php'; 00024 00032 class MSSQLStatement extends StatementCommon implements Statement { 00033 00042 public function executeQuery($sql, $fetchmode = null) 00043 { 00044 $this->updateCount = null; 00045 $this->resultSet = $this->conn->executeQuery($sql, $fetchmode); 00046 $this->resultSet->_setOffset($this->offset); 00047 $this->resultSet->_setLimit($this->limit); 00048 return $this->resultSet; 00049 } 00050 00051 00065 public function getMoreResults() 00066 { 00067 if ($this->resultSet) $this->resultSet->close(); 00068 $this->resultSet = null; 00069 return false; 00070 } 00071 00072 }