cvs: pear /MDB/MDB/Modules/Manager fbsql.php
| From: | Frank M. Kromann | Date: | Thu, 05 Jun 2003 15:45:56 +0000 |
| Subject: | cvs: pear /MDB/MDB/Modules/Manager fbsql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-10712@lists.php.net to get a copy of this message | ||
fmk Thu Jun 5 11:45:56 2003 EDT
Modified files:
/pear/MDB/MDB/Modules/Manager fbsql.php
Log:
Change SQL to match FrontBase
primary keys is NOT NULL by default. no need to add an extra constraint
Index: pear/MDB/MDB/Modules/Manager/fbsql.php
diff -u pear/MDB/MDB/Modules/Manager/fbsql.php:1.6 pear/MDB/MDB/Modules/Manager/fbsql.php:1.7
--- pear/MDB/MDB/Modules/Manager/fbsql.php:1.6 Thu Apr 17 10:42:00 2003
+++ pear/MDB/MDB/Modules/Manager/fbsql.php Thu Jun 5 11:45:56 2003
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@dybnet.de> |
// +----------------------------------------------------------------------+
//
-// $Id: fbsql.php,v 1.6 2003/04/17 14:42:00 lsmith Exp $
+// $Id: fbsql.php,v 1.7 2003/06/05 15:45:56 fmk Exp $
//
if(!defined('MDB_MANAGER_FBSQL_INCLUDED'))
@@ -221,7 +221,7 @@
if (isset($db->supported['Transactions'])
&& $db->default_table_type=='BDB')
{
- $query_fields .= ', dummy_primary_key INT NOT NULL AUTO_INCREMENT, PRIMARY KEY
(dummy_primary_key)';
+ $query_fields .= ', dummy_primary_key INT DEFAULT UNIQUE, PRIMARY KEY
(dummy_primary_key)';
}
$query = "CREATE TABLE $name ($query_fields)".(strlen($db->default_table_type)
? ' TYPE='.$db->default_table_type : '');