diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-21 14:41:05 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-21 14:41:05 -0800 |
commit | 9f810150532a2511bfc5f03c9d24fd592d2f803f (patch) | |
tree | 7e4c1d8547b1eb3977f5b634270d51334f4fe910 /system/libraries/Database.php | |
parent | a6c3e8f0a26661afd353c75bea496532999f2ca5 (diff) | |
parent | be20309259de9310da3be703c93c4e42def2541b (diff) |
Merge branch 'master' into talmdal_dev
Diffstat (limited to 'system/libraries/Database.php')
-rw-r--r-- | system/libraries/Database.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/libraries/Database.php b/system/libraries/Database.php index 98e33fa0..253bb152 100644 --- a/system/libraries/Database.php +++ b/system/libraries/Database.php @@ -420,6 +420,11 @@ abstract class Database_Core { { return (string) $value; } + elseif (is_float($value)) + { + // Convert to non-locale aware float to prevent possible commas + return sprintf('%F', $value); + } return '\''.$this->escape($value).'\''; } |