Pretend exponents are simple text since hex strings can also be.

This commit is contained in:
Andrew McMillan 2010-04-03 10:54:35 +13:00
parent cbfaf84f45
commit 6cca907ecf

View File

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