Changes between Initial Version and Version 1 of FdoDateTimeCompare


Ignore:
Timestamp:
10/17/07 12:36:42 (17 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoDateTimeCompare

    v1 v1  
     1
     2== Overview ==
     3
     4There are a number of places in Provider source code where !FdoDateTime are compared, which include but are not limited to The FdoISelectAggregatesCommand implementations of non-RDBMS providers that support MIN, MAX. When a row is being fetched the value is compared against the previous one. Currently the comparison is done in !FdoCommonMiscUtil.cpp. For consistency (say with FdoStringP) and convenience, the comparison should be exposed in the !FdoDateTime class itself.
     5
     6== API Changes ==
     7
     8The following method will be added to !FdoDateTime class:
     9
     10{{{
     11FDO_API static int FdoDateTime::Compare( FdoDateTime * other );
     12}}}
     13
     14''other'' is the other value to compare against the current value.
     15
     16The return values can be one of the following:
     17
     180  - this and the other value are equal or both null[[BR]]
     191  - this value is greater than the other value[[BR]]
     20-1 - this value is less than the other value[[BR]]
     21
     22
     23
     24