logo       

cvs: pear /MDB/MDB Common.php mysql.php: msg#00255

Subject: cvs: pear /MDB/MDB Common.php mysql.php
lsmith          Wed Dec 25 11:01:39 2002 EDT

  Modified files:              
    /pear/MDB/MDB       mysql.php Common.php 
  Log:
  commit fixed bug when no type is given
  
  
Index: pear/MDB/MDB/mysql.php
diff -u pear/MDB/MDB/mysql.php:1.62 pear/MDB/MDB/mysql.php:1.63
--- pear/MDB/MDB/mysql.php:1.62 Fri Dec 20 13:10:22 2002
+++ pear/MDB/MDB/mysql.php      Wed Dec 25 11:01:38 2002
@@ -42,7 +42,7 @@
 // | Author: Lukas Smith <smith@xxxxxxxxxxxxxxxx>                         |
 // +----------------------------------------------------------------------+
 //
-// $Id: mysql.php,v 1.62 2002/12/20 18:10:22 lsmith Exp $
+// $Id: mysql.php,v 1.63 2002/12/25 16:01:38 lsmith Exp $
 //
 
 require_once 'MDB/Common.php';
@@ -538,7 +538,7 @@
      *          Name of the type of the field. Currently, all types Metabase
      *          are supported except for clob and blob.
      *
-     *    Default: text
+     *    Default: no type conversion
      *
      *    Null
      *          Boolean property that indicates that the value for this field
@@ -616,6 +616,8 @@
                             return $this->raiseError(MDB_ERROR_CANNOT_REPLACE, 
'', '',
                                 'no supported type for field "' . $name . '" 
specified');
                     }
+                } else {
+                    $value = $fields[$name]['Value'];
                 }
             }
             $values .= $value;
Index: pear/MDB/MDB/Common.php
diff -u pear/MDB/MDB/Common.php:1.82 pear/MDB/MDB/Common.php:1.83
--- pear/MDB/MDB/Common.php:1.82        Fri Dec 20 13:10:22 2002
+++ pear/MDB/MDB/Common.php     Wed Dec 25 11:01:38 2002
@@ -42,7 +42,7 @@
 // | Author: Lukas Smith <smith@xxxxxxxxxxxxxxxx>                         |
 // +----------------------------------------------------------------------+
 //
-// $Id: Common.php,v 1.82 2002/12/20 18:10:22 lsmith Exp $
+// $Id: Common.php,v 1.83 2002/12/25 16:01:38 lsmith Exp $
 
 /**
  * @package MDB
@@ -1482,7 +1482,7 @@
      *           Name of the type of the field. Currently, all types Metabase
      *           are supported except for clob and blob.
      *
-     *           Default: text
+     *           Default: no type conversion
      *
      *       Null
      *           Boolean property that indicates that the value for this field
@@ -1565,6 +1565,8 @@
                             return $this->raiseError(MDB_ERROR_CANNOT_REPLACE, 
'', '',
                                 'no supported type for field "' . $name . '" 
specified');
                     }
+                } else {
+                    $value = $fields[$name]['Value'];
                 }
             }
             $update .= '=' . $value;



-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe