Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NullInt16 (0.63 sec)

  1. api/go1.17.txt

    pkg database/sql, method (*NullInt16) Scan(interface{}) error
    pkg database/sql, method (NullByte) Value() (driver.Value, error)
    pkg database/sql, method (NullInt16) Value() (driver.Value, error)
    pkg database/sql, type NullByte struct
    pkg database/sql, type NullByte struct, Byte uint8
    pkg database/sql, type NullByte struct, Valid bool
    pkg database/sql, type NullInt16 struct
    pkg database/sql, type NullInt16 struct, Int16 int16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 18K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    }
    
    func TestNullInt16Param(t *testing.T) {
    	spec := nullTestSpec{"nullint16", "int16", [6]nullTestRow{
    		{NullInt16{31, true}, 1, NullInt16{31, true}},
    		{NullInt16{-22, false}, 1, NullInt16{0, false}},
    		{22, 1, NullInt16{22, true}},
    		{NullInt16{33, true}, 1, NullInt16{33, true}},
    		{NullInt16{222, false}, 1, NullInt16{0, false}},
    		{0, NullInt16{31, 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)
  3. src/database/sql/fakedb_test.go

    	switch typ {
    	case "bool":
    		return reflect.TypeFor[bool]()
    	case "nullbool":
    		return reflect.TypeFor[NullBool]()
    	case "int16":
    		return reflect.TypeFor[int16]()
    	case "nullint16":
    		return reflect.TypeFor[NullInt16]()
    	case "int32":
    		return reflect.TypeFor[int32]()
    	case "nullint32":
    		return reflect.TypeFor[NullInt32]()
    	case "string":
    		return reflect.TypeFor[string]()
    	case "nullstring":
    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.go

    	}
    	return int64(n.Int32), nil
    }
    
    // NullInt16 represents an int16 that may be null.
    // NullInt16 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullInt16 struct {
    	Int16 int16
    	Valid bool // Valid is true if Int16 is not NULL
    }
    
    // Scan implements the [Scanner] interface.
    func (n *NullInt16) 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)
  5. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"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},
    		{"NullInt32.Valid", Field, 13},
    		{"NullInt64", Type, 0},
    		{"NullInt64.Int64", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top