recordDataToString

Converts the binary errorRecord value to string format.

Syntax

recordDataToString (string sourceStreamName, binary errorRecord)

Parameters

The sourceStreamName is a string that provides the name of the stream from which the error record originated. This should always be the sourceStreamName field of an error stream. Specifying the name of another stream (such as the error stream) can cause a fatal error due to a schema mismatch. If this argument doesn't point to an existing stream, recordDataToString returns a NULL after setting an error flag to indicate that a bad argument was specified.

The errorRecord is a binary that provides the record that triggered the error. This should always be the errorRecord field of the error stream and the schema should always match the record.
Note: Passing any arbitrary binary string or a mismatching schema (stream) name will result in undefined behavior: ranging from garbage in the record to crashing the server. The arguments to this built-in should always be the sourceStreamName and errorRecord fields of the same error stream.