MS SQL: Do not update AI value
This commit is contained in:
parent
4a2fe5eac1
commit
9f69d7ae93
|
@ -618,7 +618,11 @@ function input($field, $value, $function) {
|
||||||
global $types, $adminer, $jush;
|
global $types, $adminer, $jush;
|
||||||
$name = h(bracket_escape($field["field"]));
|
$name = h(bracket_escape($field["field"]));
|
||||||
echo "<td class='function'>";
|
echo "<td class='function'>";
|
||||||
$functions = (isset($_GET["select"]) ? array("orig" => lang('original')) : array()) + $adminer->editFunctions($field);
|
$reset = ($jush == "mssql" && $field["auto_increment"]);
|
||||||
|
if ($reset && !$_POST["save"]) {
|
||||||
|
$function = null;
|
||||||
|
}
|
||||||
|
$functions = (isset($_GET["select"]) || $reset ? array("orig" => lang('original')) : array()) + $adminer->editFunctions($field);
|
||||||
$attrs = " name='fields[$name]'";
|
$attrs = " name='fields[$name]'";
|
||||||
if ($field["type"] == "enum") {
|
if ($field["type"] == "enum") {
|
||||||
echo nbsp($functions[""]) . "<td>" . $adminer->editInput($_GET["edit"], $field, $attrs, $value);
|
echo nbsp($functions[""]) . "<td>" . $adminer->editInput($_GET["edit"], $field, $attrs, $value);
|
||||||
|
|
1
todo.txt
1
todo.txt
|
@ -42,7 +42,6 @@ Column rights - http://www.postgresql.org/docs/8.4/static/functions-info.html
|
||||||
bool in Editor
|
bool in Editor
|
||||||
|
|
||||||
MS SQL:
|
MS SQL:
|
||||||
Edit of AI column
|
|
||||||
Non UTF-8 character sets
|
Non UTF-8 character sets
|
||||||
Detection of table collation
|
Detection of table collation
|
||||||
PDO_MSSQL and PDO_SQLSRV driver with seek
|
PDO_MSSQL and PDO_SQLSRV driver with seek
|
||||||
|
|
Loading…
Reference in a new issue