Removed duplicated method
This commit is contained in:
parent
c4a4f834f7
commit
4d92c6df26
@ -465,19 +465,6 @@ func (db *DB) GetSQL() string {
|
|||||||
return stmt
|
return stmt
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *DB) GetSQL() string {
|
|
||||||
scope := db.NewScope(db.Value)
|
|
||||||
|
|
||||||
scope.prepareQuerySQL()
|
|
||||||
|
|
||||||
stmt := scope.SQL
|
|
||||||
for _, arg := range scope.SQLVars {
|
|
||||||
stmt = strings.Replace(stmt, "?", "'"+escape(fmt.Sprintf("%v", arg))+"'", 1)
|
|
||||||
}
|
|
||||||
|
|
||||||
return stmt
|
|
||||||
}
|
|
||||||
|
|
||||||
func (db *DB) GetSQLWhereClause() string {
|
func (db *DB) GetSQLWhereClause() string {
|
||||||
scope := db.NewScope(db.Value)
|
scope := db.NewScope(db.Value)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user