null value checkbox

This commit is contained in:
Marc Delisle
2001-12-30 01:19:45 +00:00
parent e42e4d88f5
commit 33c1195875
4 changed files with 80 additions and 45 deletions

View File

@@ -105,6 +105,11 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) {
break;
} // end switch
// Was the Null checkbox checked for this field?
if (isset($fields_null) && isset($fields_null[$encoded_key])) {
$val = 'NULL';
}
// No change for this column and no MySQL function is used -> next column
if (empty($funcs[$encoded_key])
&& isset($fields_prev) && isset($fields_prev[$encoded_key])
@@ -154,7 +159,7 @@ else {
while (list($key, $val) = each($fields)) {
$encoded_key = $key;
$key = urldecode($key);
$fieldlist .= PMA_backquote($key) . ', ';
$fieldlist .= PMA_backquote($key) . ', ';
switch (strtolower($val)) {
case 'null':
@@ -192,6 +197,11 @@ else {
break;
} // end switch
// Was the Null checkbox checked for this field?
if (isset($fields_null) && isset($fields_null[$encoded_key])) {
$val = 'NULL';
}
if (empty($funcs[$encoded_key])) {
$valuelist .= $val . ', ';
} else if ($val == '\'\''