Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 858 for isSelect (0.2 sec)

  1. src/database/sql/ctxutil.go

    	if ciCtx, is := ci.(driver.ConnPrepareContext); is {
    		return ciCtx.PrepareContext(ctx, query)
    	}
    	si, err := ci.Prepare(query)
    	if err == nil {
    		select {
    		default:
    		case <-ctx.Done():
    			si.Close()
    			return nil, ctx.Err()
    		}
    	}
    	return si, err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 02 12:57:37 UTC 2019
    - 3.5K bytes
    - Viewed (0)
  2. pkg/filewatcher/fakefilewatcher_test.go

    		if gotRemove != file {
    			t.Fatalf("Remove() failed: got %v want %v", gotRemove, file)
    		}
    		select {
    		case <-addedChan:
    			t.Fatal("Remove() failed: callback invoked with added=false")
    		default:
    		}
    
    		wantEvent = fsnotify.Event{Name: file, Op: fsnotify.Write}
    		fakeWatcher.InjectEvent(file, wantEvent)
    		select {
    		case gotEvent := <-watcher.Events(file):
    			t.Fatalf("Unexpected Events() after Remove(): got %v", gotEvent)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/ExternalModuleDependencyVariantSpec.java

    /**
     * The specification of a dependency variant. Some dependencies can be fined tuned
     * to select a particular variant. For example, one might want to select the test
     * fixtures of a target component, or a specific classifier.
     *
     * @since 6.8
     */
    public interface ExternalModuleDependencyVariantSpec {
        /**
         * Configures the dependency to select the "platform" variant.
         */
        void platform();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 27 23:38:43 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  4. test/chan/select6.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test for select: Issue 2075
    // A bug in select corrupts channel queues of failed cases
    // if there are multiple waiters on those channels and the
    // select is the last in the queue. If further waits are made
    // on the channel without draining it first then those waiters
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 783 bytes
    - Viewed (0)
  5. clause/benchmarks_test.go

    		clauses := []clause.Interface{clause.Select{}, clause.From{}, clause.Where{Exprs: []clause.Expression{clause.Eq{Column: clause.PrimaryColumn, Value: "1"}, clause.Gt{Column: "age", Value: 18}, clause.Or(clause.Neq{Column: "name", Value: "jinzhu"})}}}
    
    		for _, clause := range clauses {
    			stmt.AddClause(clause)
    		}
    
    		stmt.Build("SELECT", "FROM", "WHERE")
    		_ = stmt.SQL.String()
    	}
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Oct 07 12:14:14 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. clause/from_test.go

    func TestFrom(t *testing.T) {
    	results := []struct {
    		Clauses []clause.Interface
    		Result  string
    		Vars    []interface{}
    	}{
    		{
    			[]clause.Interface{clause.Select{}, clause.From{}},
    			"SELECT * FROM `users`", nil,
    		},
    		{
    			[]clause.Interface{
    				clause.Select{}, clause.From{
    					Tables: []clause.Table{{Name: "users"}},
    					Joins: []clause.Join{
    						{
    							Type:  clause.InnerJoin,
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jul 15 02:25:10 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  7. test/codegen/condmove.go

    	// wasm:"Select"
    	return x
    }
    
    func cmov32bit(x, y uint32) uint32 {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVL(HI|CS)"
    	// arm64:"CSNEG\t(LS|HS)"
    	// ppc64x:"ISEL\t[$]1"
    	// wasm:"Select"
    	return x
    }
    
    func cmov16bit(x, y uint16) uint16 {
    	if x < y {
    		x = -y
    	}
    	// amd64:"CMOVW(HI|CS)"
    	// arm64:"CSNEG\t(LS|HS)"
    	// ppc64x:"ISEL\t[$][01]"
    	// wasm:"Select"
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 20:57:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/daemon-services/src/test/groovy/org/gradle/api/internal/tasks/userinput/NonInteractiveUserInputHandlerTest.groovy

        }
    
        def "always returns default for select question"() {
            expect:
            userInputHandler.selectOption('Select count', [1, 2, 3], 2) == 2
        }
    
        def "returns first option when no default"() {
            expect:
            userInputHandler.choice('Select count', [1, 2, 3])
                .ask() == 1
        }
    
        def "returns default option for choice"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 04:50:46 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/artifact/NoBuildDependenciesArtifactSetTest.groovy

            def target = Stub(ArtifactSet)
            def selector = Stub(ArtifactVariantSelector)
    
            when:
            target.select(_, _) >> ResolvedArtifactSet.EMPTY
    
            then:
            new NoBuildDependenciesArtifactSet(target).select(selector, Mock(ArtifactSelectionSpec)) == ResolvedArtifactSet.EMPTY
        }
    
        def "creates wrapper for non-empty set of selected artifacts"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. tests/count_test.go

    	result := dryDB.Table("users").Select("name").Count(&count)
    	if !regexp.MustCompile(`SELECT COUNT\(.name.\) FROM .*users.*`).MatchString(result.Statement.SQL.String()) {
    		t.Fatalf("Build count with select, but got %v", result.Statement.SQL.String())
    	}
    
    	result = dryDB.Table("users").Distinct("name").Count(&count)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Oct 30 09:15:49 UTC 2023
    - 6.9K bytes
    - Viewed (0)
Back to top