to reproduce the problem, try this:
OraSession1.Options.Direct := true;
OraQuery.sql.clear;
OraQuery.sql.append('select 165.744 as s_km from dual');
OraQuery.Filter := 's_km = 165.744';
OraQuery.Filtered := true;
=> No result returned! It should find 165.744, but it does not.
With some value it does work, with some other it doesn't.
We announce this problem in April 2009 already.
thanks
michel
BUG: when filtering real numbers!
-
michellenweiter
- Posts: 29
- Joined: Thu 09 Jun 2005 06:23
- Location: Bern, Switzerland
-
michellenweiter
- Posts: 29
- Joined: Thu 09 Jun 2005 06:23
- Location: Bern, Switzerland
-
michellenweiter
- Posts: 29
- Joined: Thu 09 Jun 2005 06:23
- Location: Bern, Switzerland
In the next ODAC build we'll add the FloatFilterDelta global variable to the MemData unit. You can set this variable to a positive value. ODAC will consider that a record corresponds to the filter if the difference between Filter value and a value from the record is less then FloatFilterDelta.
For example:
For example:
Code: Select all
uses MemData;
...
initialization
FloatFilterDelta := 1E-10;
end.