Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for NewName (0.04 seconds)

  1. migrator/migrator.go

    func (m Migrator) RenameColumn(value interface{}, oldName, newName string) error {
    	return m.RunWithValue(value, func(stmt *gorm.Statement) error {
    		if stmt.Schema != nil {
    			if field := stmt.Schema.LookUpField(oldName); field != nil {
    				oldName = field.DBName
    			}
    
    			if field := stmt.Schema.LookUpField(newName); field != nil {
    				newName = field.DBName
    			}
    		}
    
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:49:01 GMT 2026
    - 29.8K bytes
    - Click Count (0)
  2. tests/generics_test.go

    		t.Fatalf("prepare user failed: %v", err)
    	}
    
    	// update with Set after chain
    	newName := "GenericsSetUpdate_After"
    	newAge := uint(31)
    	rows, err := gorm.G[User](DB).
    		Where("id = ?", u.ID).
    		Set(
    			clause.Assignment{Column: clause.Column{Name: "name"}, Value: newName},
    			clause.Assignment{Column: clause.Column{Name: "age"}, Value: newAge},
    		).
    		Update(ctx)
    	if err != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Dec 30 08:11:14 GMT 2025
    - 34.9K bytes
    - Click Count (0)
  3. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        }
        // TODO(b/145674566): We use Graph::NewName to get a unique name here but
        // this may not be consistent with python's naming policy.
        mutex_lock l(g_->mu);
        op_.reset(new TF_OperationDescription(g_, op_type_.c_str(),
                                              g_->graph.NewName(op_name).c_str()));
        return absl::OkStatus();
      }
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Sat May 31 07:13:41 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  4. tests/upsert_test.go

    	} else if langs[0].Name != "upsert-new" {
    		t.Errorf("should update name on conflict, but got name %+v", langs[0].Name)
    	}
    
    	lang = Language{Code: "upsert", Name: "Upsert-Newname"}
    	if err := DB.Clauses(clause.OnConflict{UpdateAll: true}).Create(&lang).Error; err != nil {
    		t.Fatalf("failed to upsert, got %v", err)
    	}
    
    	var result Language
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Tue Jul 29 11:06:13 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/NotifyResponseTest.java

            FileNotifyInformation renamedNew = mock(FileNotifyInformation.class);
            when(renamedNew.getAction()).thenReturn(FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME);
            when(renamedNew.getFileName()).thenReturn("newname.txt");
    
            List<FileNotifyInformation> notifications = Arrays.asList(addedFile, removedFile, modifiedFile, renamedOld, renamedNew);
    
            MockNotifyResponse response = new MockNotifyResponse(notifications);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
Back to Top