mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
SQLite: Fix type of $auto_increment
This commit is contained in:
@@ -64,7 +64,9 @@ function idx(?array $array, $key, $default = null) {
|
||||
return ($array && array_key_exists($key, $array) ? $array[$key] : $default);
|
||||
}
|
||||
|
||||
/** Remove non-digits from a string */
|
||||
/** Remove non-digits from a string; used instead of intval() to not corrupt big numbers
|
||||
* @return numeric-string
|
||||
*/
|
||||
function number(string $val): string {
|
||||
return preg_replace('~[^0-9]+~', '', $val);
|
||||
}
|
||||
|
Reference in New Issue
Block a user