Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for inferTypesForCmp (0.17 sec)

  1. internal/s3select/sql/funceval.go

    		return arg, nil
    	}
    	return FromNull(), nil
    }
    
    func nullif(v1, v2 *Value) (res *Value, err error) {
    	// Handle Null cases
    	if v1.IsNull() || v2.IsNull() {
    		return v1, nil
    	}
    
    	err = inferTypesForCmp(v1, v2)
    	if err != nil {
    		return nil, err
    	}
    
    	atleastOneNumeric := v1.isNumeric() || v2.isNumeric()
    	bothNumeric := v1.isNumeric() && v2.isNumeric()
    	if atleastOneNumeric || !bothNumeric {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
Back to top