Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

Commit

Permalink
fixed some parts of pingcap/tidb#36
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Sep 8, 2015
1 parent e4760ab commit 76e349a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tidb
3 changes: 1 addition & 2 deletions tidb_dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ func (db *tidb) SqlType(c *core.Column) string {
var res string
switch t := c.SQLType.Name; t {
case core.Bool:
res = core.TinyInt
c.Length = 1
res = core.Bool
case core.Serial:
c.IsAutoIncrement = true
c.IsPrimaryKey = true
Expand Down

0 comments on commit 76e349a

Please sign in to comment.