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

From: kk
Date: Tue Jan 25 14:08:09 2000
Modified files:
      php-lib/php/db_mysql.inc

Log message:
Changed column names fixed.

Index: php-lib/php/db_mysql.inc
diff -u php-lib/php/db_mysql.inc:1.26 php-lib/php/db_mysql.inc:1.27
--- php-lib/php/db_mysql.inc:1.26 Tue Dec 14 06:54:24 1999
+++ php-lib/php/db_mysql.inc Tue Jan 25 14:07:39 2000
@@ -5,7 +5,7 @@
  * Copyright (c) 1998,1999 NetUSE GmbH
  * Boris Erdmann, Kristian Koehntopp
  *
- * $Id: db_mysql.inc,v 1.26 1999/12/14 05:54:24 ssilk Exp $
+ * $Id: db_mysql.inc,v 1.27 2000/01/25 13:07:39 kk Exp $
  *
  */
 
@@ -236,7 +236,7 @@
     
     if ($this->lock($this->Seq_Table)) {
       /* get sequence number (locked) and increment */
- $q = sprintf("select nextid from %s where seq_name = '%s'",
+ $q = sprintf("select p_nextid from %s where p_seq_name = '%s'",
                 $this->Seq_Table,
                 $seq_name);
       $id =  <email protected>($q, $this->Link_ID);
@@ -245,7 +245,7 @@
       /* No current value, make one */
       if (!is_array($res)) {
         $currentid = 0;
- $q = sprintf("insert into %s values('%s', %s)",
+ $q = sprintf("insert into %s ( p_seq_name, p_nextid ) values('%s', %s)",
                  $this->Seq_Table,
                  $seq_name,
                  $currentid);
@@ -254,7 +254,7 @@
         $currentid = $res["nextid"];
       }
       $nextid = $currentid + 1;
- $q = sprintf("update %s set nextid = '%s' where seq_name = '%s'",
+ $q = sprintf("update %s set p_nextid = '%s' where p_seq_name = '%s'",
                $this->Seq_Table,
                $nextid,
                $seq_name);

-
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.