Home | Previous Page | Next Page   Extending Operators and Built-In Functions > Operators and Operator Functions >

Overloading an Operator Function

When you write a new version of an operator function, follow these rules:

Tip:
Although the compare() function is not strictly an operator function, when you overload the relational operators, you should prepare a corresponding compare() function, because the database server uses compare() to process queries that SELECT DISTINCT or have an ORDER BY clause.

If you define a compare() function, you must also define the greaterthan(), lessthan(), or other functions that use the compare function.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]