Skip to content

Commit

Permalink
Fix GORM with Go 1.4 go-gorm#892
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhu committed Mar 9, 2016
1 parent 8de97c2 commit bd99af5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func (c *Callback) clone() *Callback {
updates: c.updates,
deletes: c.deletes,
queries: c.queries,
rowQueries: c.rowQueries,
processors: c.processors,
}
}
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func ToDBName(name string) string {
)

for i, v := range value[:len(value)-1] {
nextCase = value[i+1] >= 'A' && value[i+1] <= 'Z'
nextCase = strCase(value[i+1] >= 'A' && value[i+1] <= 'Z')
if i > 0 {
if currCase == upper {
if lastCase == upper && nextCase == upper {
Expand Down

0 comments on commit bd99af5

Please sign in to comment.