bug fixed #280
This commit is contained in:
parent
29fd03b318
commit
b3ec16b09c
|
@ -33,7 +33,7 @@ func test(engine *xorm.Engine) {
|
|||
return
|
||||
}
|
||||
|
||||
size := 500
|
||||
size := 100
|
||||
queue := make(chan int, size)
|
||||
|
||||
for i := 0; i < size; i++ {
|
||||
|
@ -83,7 +83,7 @@ func test(engine *xorm.Engine) {
|
|||
}
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(1)
|
||||
runtime.GOMAXPROCS(2)
|
||||
fmt.Println("-----start sqlite go routines-----")
|
||||
engine, err := sqliteEngine()
|
||||
if err != nil {
|
||||
|
|
|
@ -818,6 +818,7 @@ func (statement *Statement) Cols(columns ...string) *Statement {
|
|||
if strings.Contains(statement.ColumnStr, ".") {
|
||||
statement.ColumnStr = strings.Replace(statement.ColumnStr, ".", statement.Engine.Quote("."), -1)
|
||||
}
|
||||
statement.ColumnStr = strings.Replace(statement.ColumnStr, statement.Engine.Quote("*"), "*", -1)
|
||||
return statement
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue