cvs: pear /Gtk_MDB_Designer/Designer Column.php

From: Date: Tue, 25 Mar 2003 09:52:44 +0000
Subject: cvs: pear /Gtk_MDB_Designer/Designer Column.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9613@lists.php.net to get a copy of this message
alan_k Tue Mar 25 04:52:44 2003 EDT Modified files: /pear/Gtk_MDB_Designer/Designer Column.php Log: sync sequence naming with pear db (i assume mdb follows the same rules - eg. tablename_seq) Index: pear/Gtk_MDB_Designer/Designer/Column.php diff -u pear/Gtk_MDB_Designer/Designer/Column.php:1.7 pear/Gtk_MDB_Designer/Designer/Column.php:1.8 --- pear/Gtk_MDB_Designer/Designer/Column.php:1.7 Sun Mar 23 10:28:24 2003 +++ pear/Gtk_MDB_Designer/Designer/Column.php Tue Mar 25 04:52:44 2003 @@ -16,7 +16,7 @@ // | Authors: Alan Knowles <alan@akbkhome.com> | // +----------------------------------------------------------------------+ // -// $Id: Column.php,v 1.7 2003/03/23 15:28:24 alan_k Exp $ +// $Id: Column.php,v 1.8 2003/03/25 09:52:44 alan_k Exp $ // // The column dataobject // @@ -125,15 +125,15 @@ // looks like mdb cant return the sql for sequences - it actually does the work. //$db->loadManager(); //$db->manager-> - + // WILL NOT HANDLE MULTIPLE SEQUENCES WELL... switch ($db->phptype) { case 'mysql': case 'fbsql': return; case 'pgsql': - return "CREATE SEQUENCE {$this->table->name}__{$this->name}_sequence INCREMENT 1 START 1"; + return "CREATE SEQUENCE {$this->table->name}_seq INCREMENT 1 START 1"; case 'oci8': - return "CREATE SEQUENCE {$this->table->name}__{$this->name}_sequence START WITH 1 INCREMENT BY 1"; + return "CREATE SEQUENCE {$this->table->name}_seq START WITH 1 INCREMENT BY 1"; } } /** @@ -192,4 +192,4 @@ } -?> \ No newline at end of file +?>

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