Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ret (0.12 sec)

  1. tests/create_test.go

    	}
    
    	var idVal int64
    	_, ok := mapValue1["id"].(uint)
    	if ok {
    		t.Skipf("This test case skipped, because the db supports returning")
    	}
    
    	idVal, ok = mapValue1["id"].(int64)
    	if !ok {
    		t.Fatal("ret result missing id")
    	}
    
    	if int64(result1.ID) != idVal {
    		t.Fatal("failed to create data from map with table, @id != id")
    	}
    
    	// case2: one record, create from *map[string]interface{}
    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)
Back to top