Skip to content

Commit

Permalink
release: v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hanchuanchuan committed May 24, 2019
1 parent 520c47f commit 2ce74f2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# goInception 更新日志


## [v0.8.1-beta] - 2019-5-24

### Fix
* 修复新建表后,使用大小写不一致的表名时返回表不存在bug

### New Features
* 添加general_log参数,用以记录全量日志

### Update
* 优化insert select新表的审核规则,现在select新表时也可以审核了


## [v0.8-beta] - 2019-5-22

### Fix
Expand Down
9 changes: 9 additions & 0 deletions session/session_inception_exec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,15 @@ crtTime datetime not null DEFAULT CURRENT_TIMESTAMP comment 'test',
uptTime datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment 'test',
primary key(id)) comment 'test';`
s.testErrorCode(c, sql)

res = makeExecSQL(tk, "drop table if exists t1;create table t1(c1 int);")
row = res.Rows()[int(tk.Se.AffectedRows())-1]
c.Assert(row[2], Equals, "0")

// 测试表名大小写
sql = "insert into T1 values(1);"
s.testErrorCode(c, sql)

}

func (s *testSessionIncExecSuite) TestDropTable(c *C) {
Expand Down
3 changes: 3 additions & 0 deletions session/session_inception_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,9 @@ primary key(id)) comment 'test';`
sql = `drop table if exists t1;CREATE TABLE t1(c1 int,c2 datetime);`
s.testErrorCode(c, sql)

// 测试表名大小写
sql = `drop table if exists t1;CREATE TABLE t1(c1 int);insert into T1 values(1);`
s.testErrorCode(c, sql)
}

func (s *testSessionIncSuite) TestDropTable(c *C) {
Expand Down

0 comments on commit 2ce74f2

Please sign in to comment.