mirror of
https://github.com/vrana/adminer.git
synced 2025-08-14 02:23:59 +02:00
Fix handling of 64 bit numbers in auto_increment
This commit is contained in:
@@ -430,7 +430,7 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
|
||||
}
|
||||
|
||||
function auto_increment() {
|
||||
return " IDENTITY" . ($_POST["Auto_increment"] != "" ? "(" . (+$_POST["Auto_increment"]) . ",1)" : "") . " PRIMARY KEY";
|
||||
return " IDENTITY" . ($_POST["Auto_increment"] != "" ? "(" . number($_POST["Auto_increment"]) . ",1)" : "") . " PRIMARY KEY";
|
||||
}
|
||||
|
||||
function alter_table($table, $name, $fields, $foreign, $comment, $engine, $collation, $auto_increment, $partitioning) {
|
||||
|
@@ -649,7 +649,7 @@ if (!defined("DRIVER")) {
|
||||
* @param string
|
||||
* @param string
|
||||
* @param string
|
||||
* @param int
|
||||
* @param string number
|
||||
* @param string
|
||||
* @return bool
|
||||
*/
|
||||
|
Reference in New Issue
Block a user