1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-16 11:34:10 +02:00

Support MD5 and SHA1 columns

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1117 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-09-19 19:58:12 +00:00
parent 8dc85b551a
commit 4b81c92582
2 changed files with 4 additions and 1 deletions

View File

@@ -300,6 +300,9 @@ ORDER BY ORDINAL_POSITION"); //! requires MySQL 5
if (ereg('date|time', $field["type"])) {
$return[] = "now";
}
if (ereg('_(md5|sha1)$', $field["field"], $match)) {
$return[] = $match[1];
}
return $return;
}