mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Relative function concat
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1034 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -362,6 +362,9 @@ class Adminer {
|
||||
$return[] = "addtime";
|
||||
$return[] = "subtime";
|
||||
}
|
||||
if (ereg('char|text', $field["type"])) {
|
||||
$return[] = "concat";
|
||||
}
|
||||
}
|
||||
if ($field["null"]) {
|
||||
array_unshift($return, "NULL");
|
||||
@@ -396,7 +399,7 @@ class Adminer {
|
||||
$return = idf_escape($name) . " $function $return";
|
||||
} elseif (ereg('^[+-] interval$', $function)) {
|
||||
$return = idf_escape($name) . " $function " . (preg_match("~^([0-9]+|'[0-9.: -]') [A-Z_]+$~i", $value) ? $value : $return);
|
||||
} elseif (ereg('^(addtime|subtime)$', $function)) {
|
||||
} elseif (ereg('^(addtime|subtime|concat)$', $function)) {
|
||||
$return = "$function(" . idf_escape($name) . ", $return)";
|
||||
} elseif (ereg('^(md5|sha1|password)$', $function)) {
|
||||
$return = "$function($return)";
|
||||
|
Reference in New Issue
Block a user