Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for CONFLICT (0.26 sec)

  1. tests/create_test.go

    	AssertEqual(t, err, nil)
    
    	u := OnConflictUser{
    		ID:     "on-conflict-user-id",
    		Name:   "on-conflict-user-name",
    		Email:  "on-conflict-user-email",
    		Mobile: "on-conflict-user-mobile",
    	}
    	err = DB.Create(&u).Error
    	AssertEqual(t, err, nil)
    
    	u.Name = "on-conflict-user-name-2"
    	u.Email = "on-conflict-user-email-2"
    	u.Mobile = ""
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  2. cmd/lock-rest-server-common.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"errors"
    )
    
    var (
    	errLockConflict       = errors.New("lock conflict")
    	errLockNotInitialized = errors.New("lock not initialized")
    	errLockNotFound       = errors.New("lock not found")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 973 bytes
    - Viewed (0)
  3. callbacks/create.go

    		}
    
    		isDryRun := !db.DryRun && db.Error == nil
    		if !isDryRun {
    			return
    		}
    
    		ok, mode := hasReturning(db, supportReturning)
    		if ok {
    			if c, ok := db.Statement.Clauses["ON CONFLICT"]; ok {
    				if onConflict, _ := c.Expression.(clause.OnConflict); onConflict.DoNothing {
    					mode |= gorm.ScanOnConflictDoNothing
    				}
    			}
    
    			rows, err := db.Statement.ConnPool.QueryContext(
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  4. internal/event/target/postgresql.go

    	psqlCreateAccessTable    = `CREATE TABLE %s (event_time TIMESTAMP WITH TIME ZONE NOT NULL, event_data JSONB);`
    
    	psqlUpdateRow = `INSERT INTO %s (key, value) VALUES ($1, $2) ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value;`
    	psqlDeleteRow = `DELETE FROM %s WHERE key = $1;`
    	psqlInsertRow = `INSERT INTO %s (event_time, event_data) VALUES ($1, $2);`
    )
    
    // Postgres constants
    const (
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 17:51:07 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. finisher_api.go

    		reflectValue = reflect.Indirect(reflectValue)
    	}
    
    	switch reflectValue.Kind() {
    	case reflect.Slice, reflect.Array:
    		if _, ok := tx.Statement.Clauses["ON CONFLICT"]; !ok {
    			tx = tx.Clauses(clause.OnConflict{UpdateAll: true})
    		}
    		tx = tx.callbacks.Create().Execute(tx.Set("gorm:update_track_time", true))
    	case reflect.Struct:
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  6. cmd/warm-backend-gcs.go

    			Bucket: bucket,
    		}
    	case "notFound":
    		if object != "" {
    			err = ObjectNotFound{
    				Bucket: bucket,
    				Object: object,
    			}
    			break
    		}
    		err = BucketNotFound{Bucket: bucket}
    	case "conflict":
    		if message == "You already own this bucket. Please select another name." {
    			err = BucketAlreadyOwnedByYou{Bucket: bucket}
    			break
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. istioctl/pkg/tag/tag.go

    	if err != nil {
    		return err
    	}
    	// Check the newly generated webhook does not conflict with existing ones.
    	resName := webhookName
    	if resName == "" {
    		resName = fmt.Sprintf("%s-%s", "istio-revision-tag", tagName)
    	}
    	if err := analyzeWebhook(resName, istioNS, tagWhYAML, revision, kubeClient.RESTConfig()); err != nil {
    		// if we have a conflict, we will fail. If --skip-confirmation is set, we will continue with a
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 02 08:32:06 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  8. cmd/xl-storage.go

    				// If versioned we have no conflicts.
    				fi.SetInlineData()
    				return fi, nil
    			}
    
    			// For overwritten objects without header we might have a
    			// conflict with data written later. Check the data path
    			// if there is a part with data.
    			partPath := fmt.Sprintf("part.%d", fi.Parts[0].Number)
    			dataPath := pathJoin(path, fi.DataDir, partPath)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    	// Prepare a temporary directory that will be cleaned up at the end.
    	// Binary names can conflict.
    	// E.g. template.test from the {html,text}/template packages.
    	binName := filepath.Base(os.Args[1])
    	deviceGotmp := fmt.Sprintf(deviceRoot+"/%s-%d", binName, os.Getpid())
    	deviceGopath := deviceGotmp + "/gopath"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  10. cmd/object-lambda-handlers.go

    	"Not Acceptable":                  http.StatusNotAcceptable,
    	"Proxy Authentication Required":   http.StatusProxyAuthRequired,
    	"Request Timeout":                 http.StatusRequestTimeout,
    	"Conflict":                        http.StatusConflict,
    	"Gone":                            http.StatusGone,
    	"Length Required":                 http.StatusLengthRequired,
    	"Precondition Failed":             http.StatusPreconditionFailed,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
Back to top