cvs: pear /MDB MDB_pear_wrapper_test.php
| From: | Lukas Smith | Date: | Wed, 17 Jul 2002 14:28:02 +0000 |
| Subject: | cvs: pear /MDB MDB_pear_wrapper_test.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-5159@lists.php.net to get a copy of this message | ||
lsmith Wed Jul 17 10:28:02 2002 EDT
Modified files:
/pear/MDB MDB_pear_wrapper_test.php
Log:
cosmetic changes
Index: pear/MDB/MDB_pear_wrapper_test.php
diff -u pear/MDB/MDB_pear_wrapper_test.php:1.10 pear/MDB/MDB_pear_wrapper_test.php:1.11
--- pear/MDB/MDB_pear_wrapper_test.php:1.10 Thu Jul 4 15:15:32 2002
+++ pear/MDB/MDB_pear_wrapper_test.php Wed Jul 17 10:28:02 2002
@@ -1,5 +1,5 @@
<?php
-// $Id: MDB_pear_wrapper_test.php,v 1.10 2002/07/04 19:15:32 lsmith Exp $
+// $Id: MDB_pear_wrapper_test.php,v 1.11 2002/07/17 14:28:02 lsmith Exp $
//
// MDB test script for the PEAR DB Wrapper.
//
@@ -57,7 +57,6 @@
echo "<br>get the next id using on demand:<br>";
echo "<br>nextId:".$db->nextId("real_funky_id_2");
echo "<br>dropSequence:".$db->dropSequence("real_funky_id_2");
-
// lets create a sequence
echo "<br>create a new seq with start 3 name real_funky_id<br>";
$err = $db->createSequence("real_funky_id",3);
@@ -66,9 +65,7 @@
}
echo "<br>get the next id:<br>";
- echo $db->nextId("real_funky_id");
- echo "<br>affected rows:<br>";
- echo $db->affectedRows()."<br>";
+ echo $db->nextId("real_funky_id")."<br>";
// lets try an prepare execute combo
$alldata = array( array(1, 'one', 'un'),
array(2, 'two', 'deux'),
@@ -100,6 +97,10 @@
echo Var_Dump::display($db->getAssoc("SELECT * FROM test", FALSE, "",
DB_FETCHMODE_ASSOC))."<br>";
echo "tableInfo on a string:<br>";
echo Var_Dump::display($db->tableInfo("numbers"))."<br>";
+ echo "<br>just a simple delete query:<br>";
+ echo Var_Dump::display($db->query("UPDATE numbers set trans_en =
0"))."<br>";
+ echo "<br>affected rows:<br>";
+ echo $db->affectedRows()."<br>";
echo "<br>just a simple delete query:<br>";
echo Var_Dump::display($db->query("DELETE FROM numbers"))."<br>";
$db->disconnect();