From 4d92c6df26ef18860dc315f758c3d7c7a606a4d8 Mon Sep 17 00:00:00 2001 From: Gerhard Gruber Date: Wed, 8 Sep 2021 08:19:34 +0200 Subject: [PATCH] Removed duplicated method --- expression_ext.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/expression_ext.go b/expression_ext.go index 746faaa1..27866c42 100644 --- a/expression_ext.go +++ b/expression_ext.go @@ -465,19 +465,6 @@ func (db *DB) GetSQL() string { 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 { scope := db.NewScope(db.Value)