Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NullTime (0.08 sec)

  1. scan.go

    		*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 (
    			fields       = make([]*schema.Field, len(columns))
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun May 25 07:40:40 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  2. tests/query_test.go

    		t.Errorf("got error when pluck time: %v", err)
    	}
    
    	for idx, tv := range ptrtimes {
    		AssertEqual(t, tv, users[idx].CreatedAt)
    	}
    
    	var nulltimes []sql.NullTime
    	if err := DB.Model(User{}).Where("name like ?", "pluck-user%").Pluck("created_at", &nulltimes).Error; err != nil {
    		t.Errorf("got error when pluck time: %v", err)
    	}
    
    	for idx, tv := range nulltimes {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 22 06:21:04 UTC 2025
    - 51K bytes
    - Viewed (0)
Back to top