Return type:
Applies to:
BUFFER-COMPARE ( source-buffer-handle , mode-exp , except-list, pairs-list , no-lobs )If mode-exp is given, it must evaluate to either “binary” or “case-sensitive” to provide that type of comparison.BUFFER-COMPARE( ) method supports binary and case-sensitive comparisons between CLOB as well as CHARACTER fields.
Note: You cannot use the BUFFER-COMPARE( ) method to compare records that contain CLOB fields, unless one or both of the corresponding fields contain the Unknown value (?); the AVM generates a run-time error. However, you can convert CLOB fields to LONGCHAR values and use the EQ, GE, GT, LE, LT, and NE comparison operators, or the COMPARE function, to compare the LONGCHAR values.If you want to compare BLOB fields only, you can set this option to FALSE and use the except-list option to exclude CLOB fields from the compare.
If these two requirements are satisfied, the BUFFER-COMPARE( ) method identifies the fields to compare based on the pairs-list argument specified in the ATTACH-DATA-SOURCE( ) method for the data-source object, if any, along with either the except-list or include-list arguments, if any. Because the ATTACH-DATA-SOURCE( ) method already allows you to define a field mapping between a data-source object buffer and a ProDataSet temp-table buffer, as well as a list of fields to include or exclude from the operation, you do not need to specify these in the BUFFER-COMPARE( ) method.Use the no-lobs option with the BUFFER-COMPARE( ) method to ignore large object data when comparing records that contain BLOB or CLOB fields. You can also use the except-list option to exclude BLOB and CLOB fields from the compare.
BUFFER-COMPARE(bh2, "binary", "cust-sales-rep,SalesRep").
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |