Use MD5 for editing long keys only in supported drivers
This commit is contained in:
parent
d92531c7fb
commit
21dc4d939c
|
@ -346,7 +346,7 @@ if (!$columns && support("table")) {
|
||||||
}
|
}
|
||||||
$unique_idf = "";
|
$unique_idf = "";
|
||||||
foreach ($unique_array as $key => $val) {
|
foreach ($unique_array as $key => $val) {
|
||||||
if (strlen($val) > 64) {
|
if (strlen($val) > 64 && ($jush == "sql" || $jush == "pgsql")) {
|
||||||
$key = "MD5(" . (strpos($key, '(') ? $key : idf_escape($key)) . ")"; //! columns looking like functions
|
$key = "MD5(" . (strpos($key, '(') ? $key : idf_escape($key)) . ")"; //! columns looking like functions
|
||||||
$val = md5($val);
|
$val = md5($val);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,7 @@ Improve speed of CSV import
|
||||||
Keep form values after refresh in Firefox
|
Keep form values after refresh in Firefox
|
||||||
Don't append newlines to uploaded files, bug since Adminer 3.7.0
|
Don't append newlines to uploaded files, bug since Adminer 3.7.0
|
||||||
Don't display SQL edit form on Ctrl+click on the select query, introduced in Adminer 3.6.4
|
Don't display SQL edit form on Ctrl+click on the select query, introduced in Adminer 3.6.4
|
||||||
|
Use MD5 for editing long keys only in supported drivers, bug since Adminer 3.6.4
|
||||||
PostgreSQL: Fix handling of nextval() default values
|
PostgreSQL: Fix handling of nextval() default values
|
||||||
|
|
||||||
Adminer 3.7.1 (released 2013-06-29):
|
Adminer 3.7.1 (released 2013-06-29):
|
||||||
|
|
Loading…
Reference in a new issue