- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SameTypeAs (0.1 sec)
-
internal/s3select/sql/value_test.go
a: *a, b: *b, }, wantOk: i == j, }) } } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if gotOk := tt.fields.a.SameTypeAs(tt.fields.b); gotOk != tt.wantOk { t.Errorf("SameTypeAs() = %v, want %v", gotOk, tt.wantOk) } }) } } func TestValue_Equals(t *testing.T) { type fields struct { a, b Value } type test struct {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Mar 06 16:56:10 UTC 2023 - 12.5K bytes - Viewed (0) -
internal/s3select/sql/value.go
// Both type and value must match. func (v Value) Equals(b Value) (ok bool) { if !v.SameTypeAs(b) { return false } return reflect.DeepEqual(v.value, b.value) } // SameTypeAs return whether the two types are strictly the same. func (v Value) SameTypeAs(b Value) (ok bool) { switch v.value.(type) { case bool: _, ok = b.value.(bool) case string:
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Feb 25 20:31:19 UTC 2022 - 20.2K bytes - Viewed (0) -
internal/s3select/sql/funceval.go
return nil, err } atleastOneNumeric := v1.isNumeric() || v2.isNumeric() bothNumeric := v1.isNumeric() && v2.isNumeric() if atleastOneNumeric || !bothNumeric { return v1, nil } if v1.SameTypeAs(*v2) { return v1, nil } cmpResult, cmpErr := v1.compareOp(opEq, v2) if cmpErr != nil { return nil, cmpErr } if cmpResult { return FromNull(), nil } return v1, nil
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 13.2K bytes - Viewed (0)