Bugfix: create IS NULL instead of IS 'NULL'
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2002-08-12 Mike Beck <mikebeck@users.sourceforge.net>
|
||||||
|
* tbl_select.php3: Bugfix: it created IS 'NULL'
|
||||||
|
instead of IS NULL
|
||||||
2002-08-12 Alexander M. Turek <rabus@users.sourceforge.net>
|
2002-08-12 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||||
* libraries/defines_php.lib.php3, Documentation.*, translators.html:
|
* libraries/defines_php.lib.php3, Documentation.*, translators.html:
|
||||||
corrected version number.
|
corrected version number.
|
||||||
@@ -1587,4 +1590,4 @@ $Source$
|
|||||||
|
|
||||||
|
|
||||||
--- Older ChangeLogs can be found on our project website ---
|
--- Older ChangeLogs can be found on our project website ---
|
||||||
http://www.phpmyadmin.net/ChangeLogs/
|
http://www.phpmyadmin.net/ChangeLogs/
|
@@ -195,15 +195,15 @@ 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' || strtoupper($fields[$i]) == 'NOT NULL') {
|
|
||||||
$quot = '';
|
|
||||||
$func[$i] = 'IS';
|
|
||||||
}
|
|
||||||
if (eregi('char|blob|text|set|enum|date|time|year', $types[$i])) {
|
if (eregi('char|blob|text|set|enum|date|time|year', $types[$i])) {
|
||||||
$quot = '\'';
|
$quot = '\'';
|
||||||
} else {
|
} else {
|
||||||
$quot = '';
|
$quot = '';
|
||||||
}
|
}
|
||||||
|
if (strtoupper($fields[$i]) == 'NULL' || strtoupper($fields[$i]) == 'NOT NULL') {
|
||||||
|
$quot = '';
|
||||||
|
$func[$i] = 'IS';
|
||||||
|
}
|
||||||
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $func[$i] $quot$fields[$i]$quot";
|
$sql_query .= ' AND ' . PMA_backquote(urldecode($names[$i])) . " $func[$i] $quot$fields[$i]$quot";
|
||||||
} // end if
|
} // end if
|
||||||
} // end for
|
} // end for
|
||||||
@@ -221,4 +221,4 @@ else {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Reference in New Issue
Block a user