tidy up comments

This commit is contained in:
Nash Tsai 2013-12-18 15:24:00 +08:00
parent 99c7031b50
commit a6eb640d81
1 changed files with 5 additions and 5 deletions

View File

@ -1,6 +1,7 @@
package xorm package xorm
import ( import (
"bytes"
"fmt" "fmt"
"reflect" "reflect"
//"strconv" //"strconv"
@ -9,14 +10,14 @@ import (
"time" "time"
) )
// !nashtsai! treat following var as interal const values // !nashtsai! treat following var as interal const values, these are used for reflect.TypeOf comparision
var ( var (
c_EMPTY_STRING = "" c_EMPTY_STRING = ""
c_BOOL_DEFAULT = false c_BOOL_DEFAULT = false
c_COMPLEX64_DEFAULT = complex64(0) c_COMPLEX64_DEFAULT = complex64(0)
c_COMPLEX128_DEFAULT = complex128(0) c_COMPLEX128_DEFAULT = complex128(0)
c_FLOAT32_DEFAULT = float32(0) c_FLOAT32_DEFAULT = float32(0)
c_FLOAT64_DEFAULT = float64(0) c_FLOAT64_DEFAULT = float64(0)
c_INT64_DEFAULT = int64(0) c_INT64_DEFAULT = int64(0)
c_UINT64_DEFAULT = uint64(0) c_UINT64_DEFAULT = uint64(0)
c_INT32_DEFAULT = int32(0) c_INT32_DEFAULT = int32(0)
@ -707,7 +708,6 @@ func (s *Statement) genDropSQL() string {
return sql return sql
} }
// !nashtsai! REVIEW, Statement is a huge struct why is this method not passing *Statement?
func (statement *Statement) genGetSql(bean interface{}) (string, []interface{}) { func (statement *Statement) genGetSql(bean interface{}) (string, []interface{}) {
table := statement.Engine.autoMap(bean) table := statement.Engine.autoMap(bean)
statement.RefTable = table statement.RefTable = table