aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/xorm.io/builder/cond_eq.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/xorm.io/builder/cond_eq.go')
-rw-r--r--vendor/xorm.io/builder/cond_eq.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/xorm.io/builder/cond_eq.go b/vendor/xorm.io/builder/cond_eq.go
index 79d795e6dd..32f04d5d4a 100644
--- a/vendor/xorm.io/builder/cond_eq.go
+++ b/vendor/xorm.io/builder/cond_eq.go
@@ -20,7 +20,8 @@ type Eq map[string]interface{}
var _ Cond = Eq{}
-func (eq Eq) opWriteTo(op string, w Writer) error {
+// OpWriteTo writes conditions with special operator
+func (eq Eq) OpWriteTo(op string, w Writer) error {
var i = 0
for _, k := range eq.sortedKeys() {
v := eq[k]
@@ -81,7 +82,7 @@ func (eq Eq) opWriteTo(op string, w Writer) error {
// WriteTo writes SQL to Writer
func (eq Eq) WriteTo(w Writer) error {
- return eq.opWriteTo(" AND ", w)
+ return eq.OpWriteTo(" AND ", w)
}
// And implements And with other conditions
@@ -101,7 +102,7 @@ func (eq Eq) IsValid() bool {
// sortedKeys returns all keys of this Eq sorted with sort.Strings.
// It is used internally for consistent ordering when generating
-// SQL, see https://github.com/go-xorm/builder/issues/10
+// SQL, see https://gitea.com/xorm/builder/issues/10
func (eq Eq) sortedKeys() []string {
keys := make([]string, 0, len(eq))
for key := range eq {