Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for nullfloat64 (0.16 sec)

  1. tests/scanner_valuer_test.go

    		Gender:   &sql.NullString{String: "M", Valid: true},
    		Age:      sql.NullInt64{Int64: 18, Valid: true},
    		Male:     sql.NullBool{Bool: true, Valid: true},
    		Height:   sql.NullFloat64{Float64: 1.8888, Valid: true},
    		Birthday: sql.NullTime{Time: time.Now(), Valid: true},
    		Allergen: NullString{sql.NullString{String: "Allergen", Valid: true}},
    		Password: EncryptedData("pass1"),
    		Bytes:    []byte("byte"),
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 07 07:02:07 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. scan.go

    		}
    	case *int, *int8, *int16, *int32, *int64,
    		*uint, *uint8, *uint16, *uint32, *uint64, *uintptr,
    		*float32, *float64,
    		*bool, *string, *time.Time,
    		*sql.NullInt32, *sql.NullInt64, *sql.NullFloat64,
    		*sql.NullBool, *sql.NullString, *sql.NullTime:
    		for initialized || rows.Next() {
    			initialized = false
    			db.RowsAffected++
    			db.AddError(rows.Scan(dest))
    		}
    	default:
    		var (
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/database/sql/fakedb_test.go

    	case "int64":
    		return reflect.TypeFor[int64]()
    	case "nullint64":
    		return reflect.TypeFor[NullInt64]()
    	case "float64":
    		return reflect.TypeFor[float64]()
    	case "nullfloat64":
    		return reflect.TypeFor[NullFloat64]()
    	case "datetime":
    		return reflect.TypeFor[time.Time]()
    	case "any":
    		return reflect.TypeFor[any]()
    	}
    	panic("invalid fakedb column type of " + typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  4. src/database/sql/sql_test.go

    func TestNullFloat64Param(t *testing.T) {
    	spec := nullTestSpec{"nullfloat64", "float64", [6]nullTestRow{
    		{NullFloat64{31.2, true}, 1, NullFloat64{31.2, true}},
    		{NullFloat64{13.1, false}, 1, NullFloat64{0, false}},
    		{-22.9, 1, NullFloat64{-22.9, true}},
    		{NullFloat64{33.81, true}, 1, NullFloat64{33.81, true}},
    		{NullFloat64{222, false}, 1, NullFloat64{0, false}},
    		{10, NullFloat64{31.2, false}, nil},
    	}}
    	nullTestRun(t, spec)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. src/database/sql/sql.go

    	}
    	return int64(n.Byte), nil
    }
    
    // NullFloat64 represents a float64 that may be null.
    // NullFloat64 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullFloat64 struct {
    	Float64 float64
    	Valid   bool // Valid is true if Float64 is not NULL
    }
    
    // Scan implements the [Scanner] interface.
    func (n *NullFloat64) Scan(value any) error {
    	if value == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 103.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NullBool.Bool", Field, 0},
    		{"NullBool.Valid", Field, 0},
    		{"NullByte", Type, 17},
    		{"NullByte.Byte", Field, 17},
    		{"NullByte.Valid", Field, 17},
    		{"NullFloat64", Type, 0},
    		{"NullFloat64.Float64", Field, 0},
    		{"NullFloat64.Valid", Field, 0},
    		{"NullInt16", Type, 17},
    		{"NullInt16.Int16", Field, 17},
    		{"NullInt16.Valid", Field, 17},
    		{"NullInt32", Type, 13},
    		{"NullInt32.Int32", Field, 13},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg database/sql, type NullBool struct, Bool bool
    pkg database/sql, type NullBool struct, Valid bool
    pkg database/sql, type NullFloat64 struct
    pkg database/sql, type NullFloat64 struct, Float64 float64
    pkg database/sql, type NullFloat64 struct, Valid bool
    pkg database/sql, type NullInt64 struct
    pkg database/sql, type NullInt64 struct, Int64 int64
    pkg database/sql, type NullInt64 struct, Valid bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top