cvs: pear /MDB MDB_test.php

From: Date: Sat, 20 Jul 2002 19:24:39 +0000
Subject: cvs: pear /MDB MDB_test.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5213@lists.php.net to get a copy of this message
lsmith Sat Jul 20 15:24:39 2002 EDT Modified files: /pear/MDB MDB_test.php Log: added a bit of Index dropping/creation fun Index: pear/MDB/MDB_test.php diff -u pear/MDB/MDB_test.php:1.17 pear/MDB/MDB_test.php:1.18 --- pear/MDB/MDB_test.php:1.17 Wed Jul 17 10:27:28 2002 +++ pear/MDB/MDB_test.php Sat Jul 20 15:24:39 2002 @@ -1,5 +1,5 @@ <?php -// $Id: MDB_test.php,v 1.17 2002/07/17 14:27:28 lsmith Exp $ +// $Id: MDB_test.php,v 1.18 2002/07/20 19:24:39 lsmith Exp $ // // MDB test script. // @@ -166,7 +166,15 @@ $array = $db->fetchAll($result); echo "<br>all with subselect:<br>"; echo Var_Dump::display($array)."<br>"; - + echo Var_Dump::display($db->dropIndex('test', 'test_id_index'))."<br>"; + $index_def = array( + "FIELDS" => array( + "test_id" => array( + "sorting" => "ascending" + ) + ) + ); + echo Var_Dump::display($db->createIndex('test', 'test_id_index', $index_def))."<br>"; if($db_type == "mysql") { // ok now lets create a new xml schema file from the existing DB // we will not use the 'metapear_test_db.schema' for this

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