diff --git a/ChangeLog b/ChangeLog index a7c12acc8..7e6825937 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2001-06-15 Marc Delisle * bug 433388, patch from Alain Brissaud (hal0802) + * feature 429767, ignore empty fields on table create (tbl_create.php3) 2001-06-14 Steve Alberty * add support for locked tables (default=off) diff --git a/tbl_create.php3 b/tbl_create.php3 index 15463d108..f8537ea31 100755 --- a/tbl_create.php3 +++ b/tbl_create.php3 @@ -13,6 +13,9 @@ if(isset($submit)) $query = ""; for($i=0; $i 0) @@ -56,11 +60,13 @@ if(isset($submit)) for($i=0;$i 0) - $index = ", INDEX ($index)"; +// if(count($field_index) > 0) + if(!empty($index)) + $index = ", INDEX ($index)"; if(!isset($unique)) $unique = ""; @@ -70,10 +76,12 @@ if(isset($submit)) for($i=0;$i 0) +// if(count($field_unique) > 0) + if(!empty($unique)) $unique = ", UNIQUE ($unique)"; $query_keys = $primary.$index.$unique; $query_keys = ereg_replace(", $", "", $query_keys);