fixed bugs with text and time type fields

This commit is contained in:
Loïc Chapeaux
2001-12-03 21:42:43 +00:00
parent 05879f74c1
commit 398b4102ad
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ $Id$
$Source$
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'
problem with the 2.2.x.
* header.inc.php3; main.php3; lang/*: modified the way server informations

View File

@@ -166,7 +166,8 @@ else {
$quot = '';
$cmp = 'IS';
}
else if ($types[$i] == 'string' || $types[$i] == 'blob') {
else if (eregi('char|blob|text', $types[$i])
|| eregi('(set|enum)[(]', $types[$i])) {
$quot = '\'';
$cmp = 'LIKE';
if (get_magic_quotes_gpc()) {
@@ -174,7 +175,7 @@ else {
}
$fields[$i] = PMA_sqlAddslashes($fields[$i], TRUE);
}
else if ($types[$i] == 'date' || $types[$i] == 'time') {
else if (eregi('date|time|year', $types[$i])) {
$quot = '\'';
$cmp = '=';
}