aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-06-30 12:14:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-06-30 12:14:41 +0200
commit3cd86904692060b0ca3e381f8264f8c36350feb1 (patch)
tree93d7c23bf813116df3065f15ef7f829df11e5f03
parentd0fae7d13d0484977a56cbdcb85e42b9854dfba5 (diff)
Reset range if we have two values in MySQL FLOAT parsing
-rw-r--r--odb/relational/mysql/context.cxx8
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 ();
}