fields with 'NULL' value were affected their default value
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* lang/spanish.inc.php3: updated thanks to
|
* lang/spanish.inc.php3: updated thanks to
|
||||||
Gabriel Ginard <gginard at navegalia.com>.
|
Gabriel Ginard <gginard at navegalia.com>.
|
||||||
* lang/*.sh: codding standards.
|
* lang/*.sh: codding standards.
|
||||||
|
* tbl_change.php3, lines 201-207: fields with "NULL" value were affected
|
||||||
|
their default value (thanks to Marc Delisle).
|
||||||
|
|
||||||
2001-12-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-12-27 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
* libraries/left.js, line 81: fixed bug #496491 - JS error with NS 4.73 on
|
* libraries/left.js, line 81: fixed bug #496491 - JS error with NS 4.73 on
|
||||||
|
@@ -198,9 +198,13 @@ for ($i = 0; $i < $fields_cnt; $i++) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
// Prepares the field value
|
// Prepares the field value
|
||||||
if (isset($row) && isset($row[$field])) {
|
if (isset($row)) {
|
||||||
|
// loic1: null field value
|
||||||
|
if (!isset($row[$field])) {
|
||||||
|
$row[$field] = 'NULL';
|
||||||
|
}
|
||||||
// loic1: special binary "characters"
|
// loic1: special binary "characters"
|
||||||
if ($is_binary || $is_blob) {
|
else if ($is_binary || $is_blob) {
|
||||||
$row[$field] = str_replace("\x00", '\0', $row[$field]);
|
$row[$field] = str_replace("\x00", '\0', $row[$field]);
|
||||||
$row[$field] = str_replace("\x08", '\b', $row[$field]);
|
$row[$field] = str_replace("\x08", '\b', $row[$field]);
|
||||||
$row[$field] = str_replace("\x0a", '\n', $row[$field]);
|
$row[$field] = str_replace("\x0a", '\n', $row[$field]);
|
||||||
|
Reference in New Issue
Block a user