Skip to main content

bit_in

Function bit_in 

Source
pub fn bit_in(s: &str, typmod: i32, varying: bool) -> Result<String, TypeError>
Expand description

bit_in and varbit_in: the bits after a B, the hex digits after an X, or the bits with no prefix. The length check comes before the check of the digits, and the length of a value with no prefix is its length in bytes.

ยงErrors

22P02 for a digit that is not valid, 22026 for a bit(n) value that does not have n bits, 22001 for a bit varying(n) value with more than n bits, and 54000 for a hex value that is too long.