[PHPLIB-DEV] cvs commit From: ssilk (phplib-dev <email protected>)
Date: 01/14/00

From: ssilk
Date: Fri Jan 14 06:43:14 2000
Modified files:
      php-lib/CHANGES
      php-lib/php/ct_sql.inc
      php-lib/php/query_sql.inc

Log message:
Typos

Index: php-lib/CHANGES
diff -u php-lib/CHANGES:1.156 php-lib/CHANGES:1.157
--- php-lib/CHANGES:1.156 Mon Jan 10 13:32:37 2000
+++ php-lib/CHANGES Fri Jan 14 06:42:43 2000
@@ -1,4 +1,25 @@
-$Id: CHANGES,v 1.156 2000/01/10 12:32:37 sylvan Exp $
+$Id: CHANGES,v 1.157 2000/01/14 05:42:43 ssilk Exp $
+
+12-Jan-2000 ssilk
+ - Fixed and tested query_sql.inc
+ The last big update to the Query class moved the problem of
+ recognizing the correct PHP-type of the database type from Query
+ into the DB_Sql-class. The changes to DB_Sql are now limited to
+ metadata()
+ See db_mysql.inc or db_oracle.inc to see the necessary changes
+ - I think it is very easy to implement for the other databases.
+ Query itself eats the function from db_usql.inc. db_usql.inc is
+ removed. Perhaps someone could explain me the sense of dump_table()?
+ For future use, please don't use import_record_vars() and dump_query().
+ The names of these functions will not approximatly describe,
+ what they really do.
+ The only thing I have to finish is the documentation. Sorry about the
+ currently unfinished state of doc/sgml/04-query.sgml. But feel free
+ to read the docs, I think the Query-class is something which could be
+ a real help to an application programmer.
+ In this context I think about renaming Query into DBI. Took this idea
+ from Perl DBI. But Query has another aim. Write me, what you think...
+ - fixed typos in ct_sql.inc and create_database.mysql
 
 10-Jan-2000 sylvan
   - Fixed most (all?) references to table properties names in adding
Index: php-lib/php/ct_sql.inc
diff -u php-lib/php/ct_sql.inc:1.22 php-lib/php/ct_sql.inc:1.23
--- php-lib/php/ct_sql.inc:1.22 Mon Jan 10 13:26:14 2000
+++ php-lib/php/ct_sql.inc Fri Jan 14 06:42:43 2000
@@ -6,7 +6,7 @@
 ##
 ## Copyright (c) 1998,1999 Sascha Schumann <sascha <email protected>>
 ##
-## $Id: ct_sql.inc,v 1.22 2000/01/10 12:26:14 sylvan Exp $
+## $Id: ct_sql.inc,v 1.23 2000/01/14 05:42:43 ssilk Exp $
 ##
 ## PHPLIB Data Storage Container using a SQL database
 ##
@@ -72,7 +72,7 @@
     $name = addslashes($name);
     $now = date("YmdHis", time());
 
- $uquery = sprintf("p_update %s set p_valenc='%s', p_valpos='%s', p_val='%s', p_changed='%s' where p_sid='%s' and p_name='%s'",
+ $uquery = sprintf("update %s set p_valenc='%s', p_valpos='%s', p_val='%s', p_changed='%s' where p_sid='%s' and p_name='%s'",
       $this->database_table,
       $this->encoding_mode,
       '000000',
Index: php-lib/php/query_sql.inc
diff -u php-lib/php/query_sql.inc:1.8 php-lib/php/query_sql.inc:1.9
--- php-lib/php/query_sql.inc:1.8 Tue Dec 14 06:54:24 1999
+++ php-lib/php/query_sql.inc Fri Jan 14 06:42:43 2000
@@ -9,7 +9,7 @@
  * is based in November 1997,
  * it was a collection of functions for PHP/FI and mSQL.
  *
- * $Id: query_sql.inc,v 1.8 1999/12/14 05:54:24 ssilk Exp $
+ * $Id: query_sql.inc,v 1.9 2000/01/14 05:42:43 ssilk Exp $
  *
  */
 
@@ -83,7 +83,7 @@
         function sql2phptype ($meta) {
                 if (!$meta[php_type])
                         $this->halt("sql2phptype(): php_type is empty!");
- return(Array($meta[php_type],$meta[php_subtype]);
+ return(Array($meta[php_type],$meta[php_subtype]));
         }
 
 
@@ -635,7 +635,7 @@
         // renames this_query_column into my_table_column
         //--------------------------------------------------------------
         function insert_query($table,$translate='') {
- if(!is_array($translate) $translate=Array();
+ if(!is_array($translate)) $translate=Array();
                 while ($this->next_record()) {
                         $meta=$this->metadata_buffered($table);
                         for ( $i=0; $i < $meta[num_fields]; $i++) {

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.