Update xorm to latest version and fix correct user table referencing in sql (#4473)

This commit is contained in:
Lauris BH authored and Lunny Xiao committed 2018-07-20 10:10:17 +08:00
1 parent 1e2da5d396
commit 0c59edaafa
49 files changed
+1718 -1102

No files matched your search

+4 -5
View File
@@ -5,7 +5,6 @@
package builder
import (
"bytes"
"io"
)
@@ -19,15 +18,15 @@ var _ Writer = NewWriter()
// BytesWriter implments Writer and save SQL in bytes.Buffer
type BytesWriter struct {
writer *bytes.Buffer
buffer []byte
writer *StringBuilder
args []interface{}
}
// NewWriter creates a new string writer
func NewWriter() *BytesWriter {
w := &BytesWriter{}
w.writer = bytes.NewBuffer(w.buffer)
w := &BytesWriter{
writer: &StringBuilder{},
}
return w
}