New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
driver.go & interpreter: remove driver.go and interpreter.go #2066
Conversation
…er-and-interpreter Conflicts: ddl/ddl_db_test.go �:q!
LGTM |
c.FailNow() | ||
_, err := s.tk.Exec("insert into t2 values (?, ?, ?)", i, i, i) | ||
if err != nil { | ||
// if err is failed, the column number must be 4 now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 577-584 don't need to be modified.
@@ -465,7 +462,7 @@ func (s *testDBSuite) testAddColumn(c *C) { | |||
num := defaultBatchSize + 10 | |||
// add some rows | |||
for i := 0; i < num; i++ { | |||
s.mustExec(c, "insert into t2 values (?, ?, ?)", i, i, i) | |||
s.tk.MustExec("insert into t2 values (?, ?, ?)", i, i, i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You updated mustExec already, so you need not to modify here.
tx := mustBegin(c, currDB) | ||
r, err := tx.Query(s) | ||
func newSession(c *C, store kv.Storage, dbName string) tidb.Session { | ||
se, err := tidb.CreateSession(store) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check this error.
@@ -21,10 +21,12 @@ import ( | |||
"strings" | |||
"time" | |||
|
|||
_ "github.com/go-sql-driver/mysql" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to import mysql driver.
a5eafc7
to
fb7f806
Compare
LGTM |
1 similar comment
LGTM |
This commit
PTAL @coocood @shenli @zimulala @hanfei1991