fn float_parameter<T>(
data: Option<T>,
server_type: Option<&ConcreteDataType>,
client_type: &Type,
unconverted: fn(Option<T>) -> ScalarValue,
) -> PgWireResult<ScalarValue>where
T: ToPrimitive + Display,Expand description
Converts a float parameter to an integer or float server type. Without a server type, the value keeps the client’s width.