Skip to content

Commit 7154d2c

Browse files
authored
add more tests (go-xorm#595)
* add more tests * fix tests
1 parent e266fb7 commit 7154d2c

10 files changed

+1309
-2
lines changed

engine.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ func (engine *Engine) Quote(value string) string {
143143

144144
// QuoteTo quotes string and writes into the buffer
145145
func (engine *Engine) QuoteTo(buf *bytes.Buffer, value string) {
146-
147146
if buf == nil {
148147
return
149148
}
@@ -781,6 +780,12 @@ func (engine *Engine) Having(conditions string) *Session {
781780
return session.Having(conditions)
782781
}
783782

783+
func (engine *Engine) unMapType(t reflect.Type) {
784+
engine.mutex.Lock()
785+
defer engine.mutex.Unlock()
786+
delete(engine.Tables, t)
787+
}
788+
784789
func (engine *Engine) autoMapType(v reflect.Value) (*core.Table, error) {
785790
t := v.Type()
786791
engine.mutex.Lock()

0 commit comments

Comments
 (0)