internalQueryOne select count... add tmp table flag
This commit is contained in:
parent
0391e1a006
commit
0463bb48fc
4
app.go
4
app.go
@ -2,11 +2,11 @@ package f5
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"os"
|
||||||
|
"q5"
|
||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
"os"
|
|
||||||
"q5"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type App interface {
|
type App interface {
|
||||||
|
@ -182,7 +182,7 @@ func (this *dbPool) PageQuery(
|
|||||||
}
|
}
|
||||||
this.internalQueryOne(
|
this.internalQueryOne(
|
||||||
dataSource,
|
dataSource,
|
||||||
fmt.Sprintf("SELECT COUNT(*) FROM (%s)", finalySql),
|
fmt.Sprintf("SELECT COUNT(*) FROM (%s) as t", finalySql),
|
||||||
params,
|
params,
|
||||||
func(err error, rows *DataSet) {
|
func(err error, rows *DataSet) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user