Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isValidArithOperator (0.15 sec)

  1. internal/s3select/sql/value.go

    	}
    
    	err = inferTypeForArithOp(a)
    	if err != nil {
    		return err
    	}
    
    	if !v.isNumeric() || !a.isNumeric() {
    		return errInvalidDataType(errArithMismatchedTypes)
    	}
    
    	if !isValidArithOperator(op) {
    		return errInvalidDataType(errArithMismatchedTypes)
    	}
    
    	intV, ok1i := v.ToInt()
    	intA, ok2i := a.ToInt()
    	switch {
    	case ok1i && ok2i:
    		res, err := intArithOp(op, intV, intA)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Feb 25 20:31:19 UTC 2022
    - 20.2K bytes
    - Viewed (0)
Back to top