cvs: pear /DB_DBA DBA_Sql.php /DB_DBA/tests test_sql.php

From: Date: Tue, 09 Jul 2002 19:25:33 +0000
Subject: cvs: pear /DB_DBA DBA_Sql.php /DB_DBA/tests test_sql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4994@lists.php.net to get a copy of this message
busterb Tue Jul 9 15:25:33 2002 EDT Modified files: /pear/DB_DBA DBA_Sql.php /pear/DB_DBA/tests test_sql.php Log: default understands quoted strings, escaped quotes Index: pear/DB_DBA/DBA_Sql.php diff -u pear/DB_DBA/DBA_Sql.php:1.4 pear/DB_DBA/DBA_Sql.php:1.5 --- pear/DB_DBA/DBA_Sql.php:1.4 Tue Jul 9 15:17:38 2002 +++ pear/DB_DBA/DBA_Sql.php Tue Jul 9 15:25:32 2002 @@ -18,7 +18,7 @@ // | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA| // +----------------------------------------------------------------------+ // -// $Id: DBA_Sql.php,v 1.4 2002/07/09 19:17:38 busterb Exp $ +// $Id: DBA_Sql.php,v 1.5 2002/07/09 19:25:32 busterb Exp $ // require_once "PEAR.php"; @@ -41,6 +41,7 @@ function getString() { $string = strtok(" \n\t"); + echo $string; $quote = substr($string, 0, 1); if (($quote != '"') && ($quote != "'")) { // this was not quoted, just return the token @@ -141,7 +142,7 @@ switch ($token) { case 'default': $tables[$tableName][$fieldName]['default'] = - DBA_Sql::getToken(); + DBA_Sql::getString(); break; case 'auto_increment': $tables[$tableName][$fieldName]['autoincrement']= Index: pear/DB_DBA/tests/test_sql.php diff -u pear/DB_DBA/tests/test_sql.php:1.4 pear/DB_DBA/tests/test_sql.php:1.5 --- pear/DB_DBA/tests/test_sql.php:1.4 Tue Jul 9 15:17:39 2002 +++ pear/DB_DBA/tests/test_sql.php Tue Jul 9 15:25:33 2002 @@ -20,13 +20,13 @@ // | Author: Brent Cook <busterb@mail.utexas.edu> | // +----------------------------------------------------------------------+ // -// $Id: test_sql.php,v 1.4 2002/07/09 19:17:39 busterb Exp $ +// $Id: test_sql.php,v 1.5 2002/07/09 19:25:33 busterb Exp $ // // test functionality of the sql parser require_once 'PEAR.php'; -require_once 'DB/DBA/DBA_Sql.php'; +require_once '../DBA_Sql.php'; $queries = array( "CREATE TABLE albums ( @@ -40,7 +40,7 @@ "CREATE TABLE photos ( filename varchar(60) not NULL, - name varchar(60), + name varchar(60) default \"no name\", album int, price float (4,2), description text,

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