From 2ce74f2ab3827d5b1091e4eace72f6a2195189e5 Mon Sep 17 00:00:00 2001 From: hanchuanchuan Date: Fri, 24 May 2019 09:42:37 +0800 Subject: [PATCH] release: v0.8.1 --- docs/changelog.md | 13 +++++++++++++ session/session_inception_exec_test.go | 9 +++++++++ session/session_inception_test.go | 3 +++ 3 files changed, 25 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 0da57167..ad6c6988 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -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 diff --git a/session/session_inception_exec_test.go b/session/session_inception_exec_test.go index dbc0976e..6dc94c5d 100644 --- a/session/session_inception_exec_test.go +++ b/session/session_inception_exec_test.go @@ -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) { diff --git a/session/session_inception_test.go b/session/session_inception_test.go index 1cd11e21..83e1ce75 100644 --- a/session/session_inception_test.go +++ b/session/session_inception_test.go @@ -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) {