Testing the Function Return Value
Go Up to Defining the Filter Function (Embedded SQL Guide)
The filter function must return an integer indicating the status of the operation it performed. You can have the function return any InterBase status value returned by an internal InterBase routine.
In some filter applications, a filter function has to supply status values directly. The following table lists status values that apply particularly to Blob processing:
Macro constant | Value | Meaning |
---|---|---|
|
0 |
Indicates the filter action has been handled successfully. On a Blob read ( |
|
1 |
Indicates an unsuccessful operation. In most cases, a status more specific to the error is returned. |
|
See |
Indicates that the attempted action is unsupported by the filter. For example, a read-only filter would return |
|
See |
During a Blob read operation, indicates that the supplied buffer is not large enough to contain the remaining bytes in the current segment. In this case, only |
|
See |
During a Blob read operation, indicates that the end of the Blob has been reached; there are no additional segments remaining to be read. |
For more information about InterBase status values, see Language Reference Guide.