Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NOSERT (0.08 sec)

  1. src/database/sql/fakedb_test.go

    		case "SELECT":
    			stmt, err = c.prepareSelect(stmt, parts)
    		case "CREATE":
    			stmt, err = c.prepareCreate(stmt, parts)
    		case "INSERT":
    			stmt, err = c.prepareInsert(ctx, stmt, parts)
    		case "NOSERT":
    			// Do all the prep-work like for an INSERT but don't actually insert the row.
    			// Used for some of the concurrent tests.
    			stmt, err = c.prepareInsert(ctx, stmt, parts)
    		default:
    			stmt.Close()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. src/database/sql/sql_test.go

    	c.db = db
    }
    
    func (c *concurrentDBExecTest) finish(t testing.TB) {
    	c.db = nil
    }
    
    func (c *concurrentDBExecTest) test(t testing.TB) error {
    	_, err := c.db.Exec("NOSERT|people|name=Chris,age=?,photo=CPHOTO,bdate=?", 3, chrisBirthday)
    	if err != nil {
    		t.Error(err)
    		return err
    	}
    	return nil
    }
    
    type concurrentStmtQueryTest struct {
    	db   *DB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
Back to top