GET_RECORD_LENGTH
Valido per
Estrai e Replicat
Descrizione
Utilizzare la funzione GET_RECORD_LENGTH per recuperare la lunghezza del record di dati. In alternativa, è possibile utilizzare la funzione GET_RECORD_BUFFER per recuperare la lunghezza del record di dati.
Sintassi
#include "usrdecs.h"
short result_code;
record_def record;
ERCALLBACK (GET_RECORD_LENGTH, &record, &result_code);
Buffer
typedef struct
{
char *table_name;
char *buffer;
long length;
char before_after_ind;
short io_type;
short record_type;
short transaction_ind;
int64_t timestamp;
exit_ts_str io_datetime;
short mapped;
short source_or_target;
/* Version 2 CALLBACK_STRUCT_VERSION */
char requesting_before_after_ind;
} record_def;
Input
<source_or_target>
Una delle seguenti opzioni indica se restituire la lunghezza del record per il record di dati di origine o di destinazione.
EXIT_FN_SOURCE_VAL
EXIT_FN_TARGET_VAL
Output
<length>
La lunghezza restituita del record di dati.
Valori restituiti
EXIT_FN_RET_INVALID_CONTEXT
EXIT_FN_RET_INVALID_PARAM
EXIT_FN_RET_OK