Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mapValue1 (0.04 sec)

  1. tests/create_test.go

    	}
    
    	// case 1: one record, create from map[string]interface{}
    	mapValue1 := map[string]interface{}{"name": "create_from_map_with_schema1", "age": 1}
    	if err := DB.Model(&User{}).Create(mapValue1).Error; err != nil {
    		t.Fatalf("failed to create data from map, got error: %v", err)
    	}
    
    	if _, ok := mapValue1["id"]; !ok {
    		t.Fatal("failed to create data from map with table, returning map has no primary key")
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Mon Jul 21 09:55:20 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  2. callbacks/create.go

    			mapValues, ok := values.([]map[string]interface{})
    			if !ok {
    				if v, ok := values.(*[]map[string]interface{}); ok {
    					if *v != nil {
    						mapValues = *v
    					}
    				}
    			}
    
    			if config.LastInsertIDReversed {
    				insertID -= int64(len(mapValues)-1) * schema.DefaultAutoIncrementIncrement
    			}
    
    			for _, mapValue := range mapValues {
    				if mapValue != nil {
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Tue Jul 29 11:06:13 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/helper/SearchLogHelper.java

                        if (value instanceof Map) {
                            @SuppressWarnings("unchecked")
                            final Map<String, Object> mapValue = (Map<String, Object>) value;
                            return toLowerHyphen(mapValue);
                        }
                        return e.getValue();
                    }));
        }
    
        /**
         * Sets the user check interval.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/WebApiUtilTest.java

                WebApiUtil.setObject("listValue", list);
    
                java.util.Map<String, String> map = new java.util.HashMap<>();
                map.put("key", "value");
                WebApiUtil.setObject("mapValue", map);
    
            } catch (Exception e) {
                fail("setObject should handle different object types: " + e.getMessage());
            }
        }
    
        public void test_error_handling_edge_cases() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 17.1K bytes
    - Viewed (0)
Back to top