From 3cd86904692060b0ca3e381f8264f8c36350feb1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 30 Jun 2011 12:14:41 +0200 Subject: Reset range if we have two values in MySQL FLOAT parsing --- odb/relational/mysql/context.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) 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 (); } -- cgit v1.1