1
0
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:
Jakub Vrana
2025-03-31 10:32:55 +02:00
parent c76b4f1805
commit 41964badb0
4 changed files with 9 additions and 7 deletions

View File

@@ -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);
}