| 1 | |
| 2 | == Overview == |
| 3 | |
| 4 | There 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 | |
| 8 | The following method will be added to !FdoDateTime class: |
| 9 | |
| 10 | {{{ |
| 11 | FDO_API static int FdoDateTime::Compare( FdoDateTime * other ); |
| 12 | }}} |
| 13 | |
| 14 | ''other'' is the other value to compare against the current value. |
| 15 | |
| 16 | The return values can be one of the following: |
| 17 | |
| 18 | 0 - this and the other value are equal or both null[[BR]] |
| 19 | 1 - this value is greater than the other value[[BR]] |
| 20 | -1 - this value is less than the other value[[BR]] |
| 21 | |
| 22 | |
| 23 | |
| 24 | |