ensure the "not null" string can be used in the "value" box of the select script
This commit is contained in:
@@ -18,7 +18,7 @@ $Source$
|
|||||||
* tbl_select.php3:
|
* tbl_select.php3:
|
||||||
- the script to returns to was hard coded, now it's the one that calls
|
- the script to returns to was hard coded, now it's the one that calls
|
||||||
tbl_select.php3;
|
tbl_select.php3;
|
||||||
- ensure the "null" string can be used in the "value" box.
|
- ensure the "null"/"not null" strings can be used in the "value" box.
|
||||||
* tbl_copy.php3; tbl_properties.php3: re-enabled the ability to copy a
|
* tbl_copy.php3; tbl_properties.php3: re-enabled the ability to copy a
|
||||||
table to another database (bug #456434). Need to be tested with
|
table to another database (bug #456434). Need to be tested with
|
||||||
MySQL < 3.23 releases.
|
MySQL < 3.23 releases.
|
||||||
|
@@ -70,7 +70,7 @@ if (!isset($param) || $param[0] == '') {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
$bgcolor = ($i % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo;
|
$bgcolor = ($i % 2) ? $cfgBgcolorOne : $cfgBgcolorTwo;
|
||||||
$fieldsize = (($fields_len[$i] > 40) ? 40 : $fields_len[$i]);
|
$fieldsize = (($fields_len[$i] > 40) ? 40 : $fields_len[$i]);
|
||||||
$maxlength = (($fields_len[$i] < 4) ? 4 : $fields_len[$i]);
|
$maxlength = (($fields_len[$i] < 8) ? 8 : $fields_len[$i]);
|
||||||
?>
|
?>
|
||||||
<tr bgcolor="<?php echo $bgcolor; ?>">
|
<tr bgcolor="<?php echo $bgcolor; ?>">
|
||||||
<td><?php echo htmlspecialchars($fields_list[$i]); ?></td>
|
<td><?php echo htmlspecialchars($fields_list[$i]); ?></td>
|
||||||
@@ -140,7 +140,7 @@ else {
|
|||||||
$sql_query .= ' WHERE 1';
|
$sql_query .= ' WHERE 1';
|
||||||
for ($i = 0; $i < count($fields); $i++) {
|
for ($i = 0; $i < count($fields); $i++) {
|
||||||
if (!empty($fields) && $fields[$i] != '') {
|
if (!empty($fields) && $fields[$i] != '') {
|
||||||
if (strtoupper($fields[$i]) == 'NULL') {
|
if (strtoupper($fields[$i]) == 'NULL' || strtoupper($fields[$i]) == 'NOT NULL') {
|
||||||
$quot = '';
|
$quot = '';
|
||||||
$cmp = 'IS';
|
$cmp = 'IS';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user