diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-06-30 12:14:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-06-30 12:14:41 +0200 |
commit | 3cd86904692060b0ca3e381f8264f8c36350feb1 (patch) | |
tree | 93d7c23bf813116df3065f15ef7f829df11e5f03 /odb/relational/mysql | |
parent | d0fae7d13d0484977a56cbdcb85e42b9854dfba5 (diff) |
Reset range if we have two values in MySQL FLOAT parsing
Diffstat (limited to 'odb/relational/mysql')
-rw-r--r-- | odb/relational/mysql/context.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/relational/mysql/context.cxx b/odb/relational/mysql/context.cxx index 80a2695..e9446c2 100644 --- a/odb/relational/mysql/context.cxx +++ b/odb/relational/mysql/context.cxx @@ -635,6 +635,14 @@ namespace relational { // We have the second range value. Skip it. // + // In FLOAT the two-value range means something + // completely different than the single-value. + // Pretend we don't have the range in the former + // case. + // + if (flt) + r.range = false; + l.next (); t = l.next (); } |