fixed bugs with text and time type fields
This commit is contained in:
@@ -6,6 +6,7 @@ $Id$
|
|||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
2001-12-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
2001-12-03 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||||
|
* tbl_select.php3: fixed bugs with text and time type fields.
|
||||||
* libraries/common.lib.php3, lines 583-585: fixed bug #488317 - 'only_db'
|
* libraries/common.lib.php3, lines 583-585: fixed bug #488317 - 'only_db'
|
||||||
problem with the 2.2.x.
|
problem with the 2.2.x.
|
||||||
* header.inc.php3; main.php3; lang/*: modified the way server informations
|
* header.inc.php3; main.php3; lang/*: modified the way server informations
|
||||||
|
@@ -166,7 +166,8 @@ else {
|
|||||||
$quot = '';
|
$quot = '';
|
||||||
$cmp = 'IS';
|
$cmp = 'IS';
|
||||||
}
|
}
|
||||||
else if ($types[$i] == 'string' || $types[$i] == 'blob') {
|
else if (eregi('char|blob|text', $types[$i])
|
||||||
|
|| eregi('(set|enum)[(]', $types[$i])) {
|
||||||
$quot = '\'';
|
$quot = '\'';
|
||||||
$cmp = 'LIKE';
|
$cmp = 'LIKE';
|
||||||
if (get_magic_quotes_gpc()) {
|
if (get_magic_quotes_gpc()) {
|
||||||
@@ -174,7 +175,7 @@ else {
|
|||||||
}
|
}
|
||||||
$fields[$i] = PMA_sqlAddslashes($fields[$i], TRUE);
|
$fields[$i] = PMA_sqlAddslashes($fields[$i], TRUE);
|
||||||
}
|
}
|
||||||
else if ($types[$i] == 'date' || $types[$i] == 'time') {
|
else if (eregi('date|time|year', $types[$i])) {
|
||||||
$quot = '\'';
|
$quot = '\'';
|
||||||
$cmp = '=';
|
$cmp = '=';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user