Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 757 for switches (0.22 sec)

  1. utils/tests/dummy_dialecter.go

    }
    
    func (DummyDialector) QuoteTo(writer clause.Writer, str string) {
    	var (
    		underQuoted, selfQuoted bool
    		continuousBacktick      int8
    		shiftDelimiter          int8
    	)
    
    	for _, v := range []byte(str) {
    		switch v {
    		case '`':
    			continuousBacktick++
    			if continuousBacktick == 2 {
    				writer.WriteString("``")
    				continuousBacktick = 0
    			}
    		case '.':
    			if continuousBacktick > 0 || !selfQuoted {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Mar 06 06:03:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/helper/CrawlingConfigHelper.java

                        return null;
                    }
                    final String id = getId(configId);
                    if (id == null) {
                        return null;
                    }
                    return switch (configType) {
                    case WEB -> {
                        final WebConfigService webConfigService = ComponentUtil.getComponent(WebConfigService.class);
                        yield webConfigService.getWebConfig(id).get();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponse.java

            // observed two zero bytes here with at least win98
            return 2;
        }
        int readDataWireFormat( byte[] buffer, int bufferIndex, int len ) {
            switch( informationLevel ) {
                case SMB_QUERY_FILE_BASIC_INFO:
                    return readSmbQueryFileBasicInfoWireFormat( buffer, bufferIndex );
                case SMB_QUERY_FILE_STANDARD_INFO:
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 5.4K bytes
    - Viewed (0)
  4. tests/gorm_test.go

    	_, err := gorm.Open(mysql.Open(dsn), &gorm.Config{})
    	if err == nil {
    		t.Fatalf("should returns error but got nil")
    	}
    }
    
    func TestReturningWithNullToZeroValues(t *testing.T) {
    	dialect := DB.Dialector.Name()
    	switch dialect {
    	case "mysql", "sqlserver":
    		// these dialects do not support the "returning" clause
    		return
    	default:
    		// This user struct will leverage the existing users table, but override
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 01 07:22:21 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  5. internal/event/errors.go

    package event
    
    import (
    	"encoding/xml"
    	"fmt"
    )
    
    // IsEventError - checks whether given error is event error or not.
    func IsEventError(err error) bool {
    	switch err.(type) {
    	case ErrInvalidFilterName, *ErrInvalidFilterName:
    		return true
    	case ErrFilterNamePrefix, *ErrFilterNamePrefix:
    		return true
    	case ErrFilterNameSuffix, *ErrFilterNameSuffix:
    		return true
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 4.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

        }
        public String getName() {
            return netName;
        }
        public int getType() {
            /* 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end
             */
            switch (type & 0xFFFF) {
                case 1:
                    return SmbFile.TYPE_PRINTER;
                case 3:
                    return SmbFile.TYPE_NAMED_PIPE;
            }
            return SmbFile.TYPE_SHARE;
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.4K bytes
    - Viewed (0)
  7. internal/http/check_port_test.go

    	}
    
    	for _, testCase := range testCases {
    		err := CheckPortAvailability(testCase.host, strconv.Itoa(testCase.port), TCPOptions{})
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    			t.Fatalf("error: expected = %v, got = <nil>", testCase.expectedErr)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 03 21:12:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. schema/schema.go

    			schema.FieldsWithDefaultDBValue = append(schema.FieldsWithDefaultDBValue, field)
    		}
    	}
    
    	if field := schema.PrioritizedPrimaryField; field != nil {
    		switch field.GORMDataType {
    		case Int, Uint:
    			if _, ok := field.TagSettings["AUTOINCREMENT"]; !ok {
    				if !field.HasDefaultValue || field.DefaultValueInterface != nil {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Thu Jun 20 12:19:31 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  9. cmd/bucket-replication.go

    	if len(data) <= 4 {
    		return brs, fmt.Errorf("replication resync: no data")
    	}
    	// Read resync meta header
    	switch binary.LittleEndian.Uint16(data[0:2]) {
    	case resyncMetaFormat:
    	default:
    		return brs, fmt.Errorf("resyncMeta: unknown format: %d", binary.LittleEndian.Uint16(data[0:2]))
    	}
    	switch binary.LittleEndian.Uint16(data[2:4]) {
    	case resyncMetaVersion:
    	default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  10. src/archive/zip/struct.go

    	s_ISGID  = 0x400
    	s_ISVTX  = 0x200
    
    	msdosDir      = 0x10
    	msdosReadOnly = 0x01
    )
    
    // Mode returns the permission and mode bits for the [FileHeader].
    func (h *FileHeader) Mode() (mode fs.FileMode) {
    	switch h.CreatorVersion >> 8 {
    	case creatorUnix, creatorMacOSX:
    		mode = unixModeToFileMode(h.ExternalAttrs >> 16)
    	case creatorNTFS, creatorVFAT, creatorFAT:
    		mode = msdosModeToFileMode(h.ExternalAttrs)
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue May 28 21:41:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top