mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-09-01 18:48:17 +00:00
Pretend exponents are simple text since hex strings can also be.
This commit is contained in:
parent
cbfaf84f45
commit
6cca907ecf
@ -194,6 +194,8 @@ class AwlDBDialect {
|
||||
elseif ( is_numeric($value)) {
|
||||
if ( preg_match('{^(19|20)\d\d(0[1-9]|1[012])([012]\d|30|31)$}', $value) )
|
||||
$value_type = PDO::PARAM_STR; // YYYYMMDD
|
||||
elseif ( preg_match('{^[0-9+-]+e[0-9+-]+$}i', $value) )
|
||||
$value_type = PDO::PARAM_STR; // 72e57650 could easily be a string
|
||||
else
|
||||
$value_type = PDO::PARAM_INT;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user