Function overlay_bytea

Source
pub fn overlay_bytea(
    s: &[u8],
    new_sub_str: &[u8],
    start: i32,
) -> Result<Box<[u8]>>
Expand description

Replaces a subsequence of the given bytea with a new bytea value.

ยงExample

query T
select overlay('\x616263646566'::bytea placing '\x9999'::bytea from 3);
----
\x616299996566