Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for valueOf (0.17 sec)

  1. tests/query_test.go

    		t.Fatalf("failed to query struct data with null age, got error %v", err)
    	}
    
    	AssertEqual(t, result, user)
    
    	users := []User{
    		*GetUser("scan_null_value_for_slice_1", Config{}),
    		*GetUser("scan_null_value_for_slice_2", Config{}),
    		*GetUser("scan_null_value_for_slice_3", Config{}),
    	}
    	DB.Create(&users)
    
    	if err := DB.Model(&users[0]).Update("age", nil).Error; err != nil {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    						columnType)
    				}
    				if v, ok := columnType.DefaultValue(); !ok || v != "hello" {
    					t.Fatalf("column code default value should be correct, name: %v, column: %#v, default value: %v",
    						columnType.Name(), columnType, v)
    				}
    				if v, ok := columnType.Comment(); !ok || v != "my code2" {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. cmd/object-api-multipart_test.go

    		// MaxKeys set to values lesser than the number of entries in the MultipartInfo.
    		// IsTruncated is expected to be true.
    		{bucketNames[1], "", "", "", "", 2, listMultipartResults[18], nil, true},
    		{bucketNames[1], "", "", "", "", 1, listMultipartResults[19], nil, true},
    		// MaxKeys set to the value which is equal to no of entries in the MultipartInfo (Test number 33).
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  4. cmd/object-api-listobjects_test.go

    		// Testing for negative value of maxKey, this should set maxKeys to listObjectsLimit (19).
    		{"test-bucket-list-object", "", "", "", -1, resultCases[0], nil, true},
    		// Testing for very large value of maxKey, this should set maxKeys to listObjectsLimit (20).
    		{"test-bucket-list-object", "", "", "", 1234567890, resultCases[0], nil, true},
    		// Testing for trancated value (21-24).
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  5. cmd/iam-store.go

    	// were changes to the in-memory cache we should wait for the next
    	// cycle until we can safely update the in-memory cache.
    	//
    	// An in-memory cache must be replaced only if we know for sure that the
    	// values loaded from disk are not stale. They might be stale if the
    	// cached.updatedAt is more recent than the refresh cycle began.
    	if cache.updatedAt.Before(loadedAt) {
    		// No one has updated anything since the config was loaded,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  6. internal/s3select/select_test.go

    			query:      `SELECT id from s3object s WHERE value = true`,
    			wantResult: `{"id":1}`,
    			withJSON: `{"id":0, "value": false}
    {"id":1, "value": true}
    {"id":2, "value": 42}
    {"id":3, "value": "true"}
    `,
    		},
    		{
    			name:       "compare-mixed-not",
    			query:      `SELECT COUNT(id) as n from s3object s WHERE value != true`,
    			wantResult: `{"n":3}`,
    			withJSON: `{"id":0, "value": false}
    {"id":1, "value": true}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 76.2K bytes
    - Viewed (0)
  7. cmd/erasure-server-pool.go

    	globalBytePoolCap.Store(buffers)
    
    	var localDrives []StorageAPI
    	local := endpointServerPools.FirstLocal()
    	for i, ep := range endpointServerPools {
    		// If storage class is not set during startup, default values are used
    		// -- Default for Reduced Redundancy Storage class is, parity = 2
    		// -- Default for Standard Storage class is, parity = 2 - disks 4, 5
    		// -- Default for Standard Storage class is, parity = 3 - disks 6, 7
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  8. cmd/sts-handlers_test.go

    			}, nil
    		},
    		RoleARN: roleARN,
    	}
    
    	value, err := webID.Retrieve()
    	if err != nil {
    		c.Fatalf("Expected to generate STS creds, got err: %#v", err)
    	}
    	// fmt.Printf("value: %#v\n", value)
    
    	minioClient, err := minio.New(s.endpoint, &minio.Options{
    		Creds:     cr.NewStaticV4(value.AccessKeyID, value.SecretAccessKey, value.SessionToken),
    		Secure:    s.secure,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  9. cmd/api-errors.go

    	if apiErr, ok := errorCodes[code]; ok {
    		return apiErr
    	}
    	return errorCodes.ToAPIErr(ErrInternalError)
    }
    
    // getErrorResponse gets in standard error and resource value and
    // provides a encodable populated response values
    func getAPIErrorResponse(ctx context.Context, err APIError, resource, requestID, hostID string) APIErrorResponse {
    	reqInfo := logger.GetReqInfo(ctx)
    	return APIErrorResponse{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  10. cmd/iam.go

    	//
    	//    - if baseInterval=10s, then 5s <= waitInterval() < 15s
    	//
    	//    - if baseInterval=10m, then 5m <= waitInterval() < 15m
    	waitInterval := func() time.Duration {
    		// Calculate a random value such that 0 <= value < baseInterval
    		randAmt := time.Duration(r.Float64() * float64(baseInterval))
    		return baseInterval/2 + randAmt
    	}
    
    	var maxDurationSecondsForLog float64 = 5
    	timer := time.NewTimer(waitInterval())
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
Back to top