Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 57 of 57 for OK (0.11 sec)

  1. clause/update.go

    		builder.WriteQuoted(currentTable)
    	} else {
    		builder.WriteQuoted(update.Table)
    	}
    }
    
    // MergeClause merge update clause
    func (update Update) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(Update); ok {
    		if update.Modifier == "" {
    			update.Modifier = v.Modifier
    		}
    		if update.Table.Name == "" {
    			update.Table = v.Table
    		}
    	}
    	clause.Expression = update
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 09 09:07:00 GMT 2020
    - 737 bytes
    - Viewed (0)
  2. clause/group_by.go

    		builder.WriteString(" HAVING ")
    		Where{Exprs: groupBy.Having}.Build(builder)
    	}
    }
    
    // MergeClause merge group by clause
    func (groupBy GroupBy) MergeClause(clause *Clause) {
    	if v, ok := clause.Expression.(GroupBy); ok {
    		copiedColumns := make([]Column, len(v.Columns))
    		copy(copiedColumns, v.Columns)
    		groupBy.Columns = append(copiedColumns, groupBy.Columns...)
    
    		copiedHaving := make([]Expression, len(v.Having))
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 30 10:28:09 GMT 2021
    - 1K bytes
    - Viewed (0)
  3. clause/clause_test.go

    		stmt          = gorm.Statement{DB: db, Table: user.Table, Schema: user, Clauses: map[string]clause.Clause{}}
    	)
    
    	for _, c := range clauses {
    		if _, ok := buildNamesMap[c.Name()]; !ok {
    			buildNames = append(buildNames, c.Name())
    			buildNamesMap[c.Name()] = true
    		}
    
    		stmt.AddClause(c)
    	}
    
    	stmt.Build(buildNames...)
    
    	if strings.TrimSpace(stmt.SQL.String()) != result {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Jun 02 02:50:38 GMT 2020
    - 1012 bytes
    - Viewed (0)
  4. association.go

    							for idx, field := range rel.FieldSchema.PrimaryFields {
    								primaryValues[idx], _ = field.ValueOf(association.DB.Statement.Context, fieldValue.Index(i))
    							}
    
    							if _, ok := relValuesMap[utils.ToStringKey(primaryValues...)]; !ok {
    								validFieldValues = reflect.Append(validFieldValues, fieldValue.Index(i))
    							}
    						}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  5. tests/associations_test.go

    		t.Fatalf("invalid %v count %v, expects: %v got %v", name, reason, result, count)
    	}
    
    	var newUser User
    	if user, ok := data.(User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	} else if user, ok := data.(*User); ok {
    		DB.Find(&newUser, "id = ?", user.ID)
    	}
    
    	if newUser.ID != 0 {
    		if count := DB.Model(&newUser).Association(name).Count(); count != result {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Feb 08 08:29:09 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. tests/query_test.go

    					switch name {
    					case "Name":
    						if _, ok := first[dbName].(string); !ok {
    							t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName])
    						}
    					case "Age":
    						if _, ok := first[dbName].(uint); !ok {
    							t.Errorf("invalid data type for %v, got %#v", dbName, first[dbName])
    						}
    					case "Birthday":
    						if _, ok := first[dbName].(*time.Time); !ok {
    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)
  7. migrator/table_type.go

    }
    
    // Type returns the type of the table.
    func (ct TableType) Type() string {
    	return ct.TypeValue
    }
    
    // Comment returns the comment of current table.
    func (ct TableType) Comment() (comment string, ok bool) {
    	return ct.CommentValue.String, ct.CommentValue.Valid
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Fri May 05 07:58:27 GMT 2023
    - 688 bytes
    - Viewed (0)
Back to top