Przeglądaj źródła

修改内置属性使用犯法

xormplus 9 lat temu
rodzic
commit
2d21b9174e
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      engine.go

+ 4 - 3
engine.go

@@ -33,8 +33,8 @@ type Engine struct {
 	TableMapper   core.IMapper
 	TagIdentifier string
 	Tables        map[reflect.Type]*core.Table
-	SqlMap        SqlMap
-	SqlTemplate   SqlTemplate
+	sqlMap        SqlMap
+	sqlTemplate   SqlTemplate
 	watcher       *fsnotify.Watcher
 	mutex         *sync.RWMutex
 	Cacher        core.Cacher
@@ -339,6 +339,7 @@ func (engine *Engine) LogWarnf(format string, contents ...interface{}) {
 func (engine *Engine) Sql(querystring string, args ...interface{}) *Session {
 	session := engine.NewSession()
 	session.IsAutoClose = true
+	session.IsSqlFuc = true
 	return session.Sql(querystring, args...)
 }
 
@@ -1547,7 +1548,7 @@ func (engine *Engine) Get(bean interface{}) (bool, error) {
 func (engine *Engine) Find(beans interface{}, condiBeans ...interface{}) error {
 	session := engine.NewSession()
 	defer session.Close()
-	return session.find(beans, condiBeans...)
+	return session.Find(beans, condiBeans...)
 }
 
 // Iterate record by record handle records from table, bean's non-empty fields