pub fn sql_mul(&self, other: &Self) -> Result<Self, Error> {
        Ok(match (self, other) {
            (Self::Number(lhs), Self::Number(rhs)) => try_from_number!(lhs.mul(*rhs), "{} * {}", lhs, rhs),
            (Self::Number(m), Self::Interval(dur)) | (Self::Interval(dur), Self::Number(m)) => {
                try_from_number_into_interval!(Number::from(*dur).mul(*m), "interval {} microsecond * {}", dur, m)
            }
            _ => {
                return Err(Error::InvalidArguments(format!(
                    "cannot multiply {} with {}",
                    self, other
                )));
            }
        })
    }
/// Multiplies two values using the rules common among SQL implementations.
Multiplies two values using the rules common among SQL implementations.
Multiplies two values using the rules common among SQL implementations .
pub fn sql_mul(&self, other: &Self) -> Result<Self, Error> {
        Ok(match (self, other) {
            (Self::Number(lhs), Self::Number(rhs)) => try_from_number!(lhs.mul(*rhs), "{} * {}", lhs, rhs),
            (Self::Number(m), Self::Interval(dur)) | (Self::Interval(dur), Self::Number(m)) => {
                try_from_number_into_interval!(Number::from(*dur).mul(*m), "interval {} microsecond * {}", dur, m)
            }
            _ => {
                return Err(Error::InvalidArguments(format!(
                    "cannot multiply {} with {}",
                    self, other
                )));
            }
        })
    }
pub fn sql_mul ( & self , other : & Self ) -> Result < Self , Error > { Ok ( match ( self , other ) { ( Self :: Number ( lhs ) , Self :: Number ( rhs ) ) => try_from_number ! ( lhs mul ( rhs ) " " lhs rhs ) , ( Self :: Number ( m ) , Self :: Interval ( dur ) ) | ( Self :: Interval ( dur ) , Self :: Number ( m ) ) => { try_from_number_into_interval ! ( Number from ( dur ) mul ( m ) " " dur m ) } _ => { return Err ( Error :: InvalidArguments ( format ! ( " " self other ) ) ) ; } } ) }
Multiplies two values using the rules common among SQL implementations.
Multiplies two values using the rules common among SQL implementations .
&self
other
&Self
&self
other
&Self