cvs: pear /MDB MDB_pear_wrapper_test.php MDB_test.php
| From: | Lukas Smith | Date: | Fri, 17 May 2002 14:14:40 +0000 |
| Subject: | cvs: pear /MDB MDB_pear_wrapper_test.php MDB_test.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3895@lists.php.net to get a copy of this message | ||
lsmith Fri May 17 10:14:40 2002 EDT
Modified files:
/pear/MDB MDB_test.php MDB_pear_wrapper_test.php
Log:
added a test for getAll
Index: pear/MDB/MDB_test.php
diff -u pear/MDB/MDB_test.php:1.4 pear/MDB/MDB_test.php:1.5
--- pear/MDB/MDB_test.php:1.4 Thu May 16 15:32:38 2002
+++ pear/MDB/MDB_test.php Fri May 17 10:14:40 2002
@@ -1,7 +1,7 @@
<?php
/*
*
- * @(#) $Header: /usr/repository/pear/MDB/MDB_test.php,v 1.4 2002/05/16 19:32:38 lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/MDB_test.php,v 1.5 2002/05/17 14:14:40 lsmith Exp $
*
*/
require_once("MDB.php");
@@ -103,6 +103,8 @@
echo Var_Dump::display($db->getRow("SELECT * FROM numbers WHERE number =
?",$array))."<br>";
echo "<br>see getCol in action:<br>";
echo Var_Dump::display($db->getCol("SELECT * FROM
numbers",$array))."<br>";
+ echo "<br>see getAll in action:<br>";
+ echo Var_Dump::display($db->getAll("SELECT * FROM test"))."<br>";
echo "<br>see getAssoc in action:<br>";
echo Var_Dump::display($db->getAssoc("SELECT * FROM test", false, "",
DB_FETCHMODE_ASSOC))."<br>";
echo "tableInfo on a string:<br>";
Index: pear/MDB/MDB_pear_wrapper_test.php
diff -u pear/MDB/MDB_pear_wrapper_test.php:1.2 pear/MDB/MDB_pear_wrapper_test.php:1.3
--- pear/MDB/MDB_pear_wrapper_test.php:1.2 Thu May 2 12:38:44 2002
+++ pear/MDB/MDB_pear_wrapper_test.php Fri May 17 10:14:40 2002
@@ -1,7 +1,7 @@
<?php
/*
*
- * @(#) $Header: /usr/repository/pear/MDB/MDB_pear_wrapper_test.php,v 1.2 2002/05/02 16:38:44
lsmith Exp $
+ * @(#) $Header: /usr/repository/pear/MDB/MDB_pear_wrapper_test.php,v 1.3 2002/05/17 14:14:40
lsmith Exp $
*
*/
require_once("pear_wrapper.php");
@@ -94,6 +94,8 @@
echo Var_Dump::display($db->getRow("SELECT * FROM numbers WHERE number =
?",$array))."<br>";
echo "<br>see getCol in action:<br>";
echo Var_Dump::display($db->getCol("SELECT * FROM
numbers",$array))."<br>";
+ echo "<br>see getAll in action:<br>";
+ echo Var_Dump::display($db->getAll("SELECT * FROM test"))."<br>";
echo "<br>see getAssoc in action:<br>";
echo Var_Dump::display($db->getAssoc("SELECT * FROM test", false, "",
DB_FETCHMODE_ASSOC))."<br>";
echo "tableInfo on a string:<br>";