cvs: pear /MDB MDB_pear_wrapper_test.php pear_wrapper.php

From: Date: Fri, 17 May 2002 17:47:18 +0000
Subject: cvs: pear /MDB MDB_pear_wrapper_test.php pear_wrapper.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3908@lists.php.net to get a copy of this message
lsmith Fri May 17 13:47:18 2002 EDT Modified files: /pear/MDB pear_wrapper.php MDB_pear_wrapper_test.php Log: added simpleQuery Index: pear/MDB/pear_wrapper.php diff -u pear/MDB/pear_wrapper.php:1.5 pear/MDB/pear_wrapper.php:1.6 --- pear/MDB/pear_wrapper.php:1.5 Fri May 17 13:33:34 2002 +++ pear/MDB/pear_wrapper.php Fri May 17 13:47:18 2002 @@ -1,7 +1,7 @@ <?php /* * - * @(#) $Header: /usr/repository/pear/MDB/pear_wrapper.php,v 1.5 2002/05/17 17:33:34 lsmith Exp $ + * @(#) $Header: /usr/repository/pear/MDB/pear_wrapper.php,v 1.6 2002/05/17 17:47:18 lsmith Exp $ * */ @@ -262,6 +262,10 @@ } else { return new DB_result($this->MDB_object, $result); } + } + + function simpleQuery($query) { + return $this->MDB_object->query($query); } function limitQuery($query, $from, $count) Index: pear/MDB/MDB_pear_wrapper_test.php diff -u pear/MDB/MDB_pear_wrapper_test.php:1.3 pear/MDB/MDB_pear_wrapper_test.php:1.4 --- pear/MDB/MDB_pear_wrapper_test.php:1.3 Fri May 17 10:14:40 2002 +++ pear/MDB/MDB_pear_wrapper_test.php Fri May 17 13:47:18 2002 @@ -1,7 +1,7 @@ <?php /* * - * @(#) $Header: /usr/repository/pear/MDB/MDB_pear_wrapper_test.php,v 1.3 2002/05/17 14:14:40 lsmith Exp $ + * @(#) $Header: /usr/repository/pear/MDB/MDB_pear_wrapper_test.php,v 1.4 2002/05/17 17:47:18 lsmith Exp $ * */ require_once("pear_wrapper.php"); @@ -34,9 +34,9 @@ echo "<br>field:<br>".$db->getOne($query)."<br>"; // run the query and get a result handler - $result = $db->query($query); + $result = $db->simpleQuery($query); echo "<br>tableInfo() "; - Var_Dump::display($result->tableInfo()); + Var_Dump::display($db->tableInfo($result)); $result = $db->query($query); echo "<br>numCols() ";

« previous php.pear.cvs (#3908) next »