Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NumInput (0.14 sec)

  1. src/database/sql/driver/driver.go

    	// do not block indefinitely (e.g. apply a timeout).
    	Close() error
    
    	// NumInput returns the number of placeholder parameters.
    	//
    	// If NumInput returns >= 0, the sql package will sanity check
    	// argument counts from callers and return errors to the caller
    	// before the statement's Exec or Query methods are called.
    	//
    	// NumInput may also return -1, if the driver doesn't know
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 09:04:12 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  2. src/database/sql/fakedb_test.go

    		posRow:    -1,
    		rows:      setMRows,
    		cols:      setColumns,
    		colType:   setColType,
    		errPos:    -1,
    	}
    	return cursor, nil
    }
    
    func (s *fakeStmt) NumInput() int {
    	if s.panic == "NumInput" {
    		panic(s.panic)
    	}
    	return s.placeholders
    }
    
    // hook to simulate broken connections
    var hookCommitBadConn func() bool
    
    func (tx *fakeTx) Commit() error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. src/database/sql/convert.go

    	// placeholders, so we won't sanity check input here and instead let the
    	// driver deal with errors.
    	want := -1
    
    	var si driver.Stmt
    	var cc ccChecker
    	if ds != nil {
    		si = ds.si
    		want = ds.si.NumInput()
    		cc.want = want
    	}
    
    	// Check all types of interfaces from the start.
    	// Drivers may opt to use the NamedValueChecker for special
    	// argument types, then return driver.ErrSkip to pass it along
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/database/sql/sql_test.go

    			}
    		}()
    		f()
    	}
    
    	expectPanic("Exec Exec", func() { db.Exec("PANIC|Exec|WIPE") })
    	exec(t, db, "WIPE") // check not deadlocked
    	expectPanic("Exec NumInput", func() { db.Exec("PANIC|NumInput|WIPE") })
    	exec(t, db, "WIPE") // check not deadlocked
    	expectPanic("Exec Close", func() { db.Exec("PANIC|Close|WIPE") })
    	exec(t, db, "WIPE")             // check not deadlocked
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg database/sql/driver, type RowsAffected int64
    pkg database/sql/driver, type Stmt interface { Close, Exec, NumInput, Query }
    pkg database/sql/driver, type Stmt interface, Close() error
    pkg database/sql/driver, type Stmt interface, Exec([]Value) (Result, error)
    pkg database/sql/driver, type Stmt interface, NumInput() int
    pkg database/sql/driver, type Stmt interface, Query([]Value) (Rows, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top