Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for nullint32 (0.24 sec)

  1. scan.go

    			*dest = append(*dest, mapValue)
    		}
    	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:
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    	spec := nullTestSpec{"nullint32", "int32", [6]nullTestRow{
    		{NullInt32{31, true}, 1, NullInt32{31, true}},
    		{NullInt32{-22, false}, 1, NullInt32{0, false}},
    		{22, 1, NullInt32{22, true}},
    		{NullInt32{33, true}, 1, NullInt32{33, true}},
    		{NullInt32{222, false}, 1, NullInt32{0, false}},
    		{0, NullInt32{31, false}, nil},
    	}}
    	nullTestRun(t, spec)
    }
    
    func TestNullInt16Param(t *testing.T) {
    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

    	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":
    		return reflect.TypeFor[NullString]()
    	case "int64":
    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

    }
    
    // Value implements the [driver.Valuer] interface.
    func (n NullInt64) Value() (driver.Value, error) {
    	if !n.Valid {
    		return nil, nil
    	}
    	return n.Int64, nil
    }
    
    // NullInt32 represents an int32 that may be null.
    // NullInt32 implements the [Scanner] interface so
    // it can be used as a scan destination, similar to [NullString].
    type NullInt32 struct {
    	Int32 int32
    	Valid bool // Valid is true if Int32 is not NULL
    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

    		{"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},
    		{"NullInt64.Valid", Field, 0},
    		{"NullString", Type, 0},
    		{"NullString.String", 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)
  6. utils/tests/models.go

    	Languages []Language `gorm:"many2many:UserSpeak;"`
    	Friends   []*User    `gorm:"many2many:user_friends;"`
    	Active    bool
    }
    
    type Account struct {
    	gorm.Model
    	UserID sql.NullInt64
    	Number string
    }
    
    type Pet struct {
    	gorm.Model
    	UserID *uint
    	Name   string
    	Toy    Toy `gorm:"polymorphic:Owner;"`
    }
    
    type Toy struct {
    	gorm.Model
    	Name      string
    	OwnerID   string
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/OrderingTest.java

        List<@Nullable Integer> list5 = Lists.newArrayList(1, null, 2);
        List<@Nullable Integer> list6 = Lists.newArrayList(2);
        List<@Nullable Integer> list7 = Lists.newArrayList(nullInt);
        List<@Nullable Integer> list8 = Lists.newArrayList(nullInt, nullInt);
        List<@Nullable List<@Nullable Integer>> list =
            Lists.newArrayList(list1, list2, list3, list4, list5, list6, list7, list8, null);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Mar 07 18:34:03 UTC 2024
    - 42.5K bytes
    - Viewed (0)
Back to top