diff --git a/VERSION b/VERSION index a75365fa..2b520b7d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -xorm v0.5.2.0316 +xorm v0.5.2.0323 diff --git a/statement.go b/statement.go index 3848011d..867c46c1 100644 --- a/statement.go +++ b/statement.go @@ -145,6 +145,11 @@ func (statement *Statement) Alias(alias string) *Statement { // Where add Where statment func (statement *Statement) Where(querystring string, args ...interface{}) *Statement { + // The second where will be triggered as And + if len(statement.WhereStr) > 0 { + return statement.And(querystring, args...) + } + if !strings.Contains(querystring, statement.Engine.dialect.EqStr()) { querystring = strings.Replace(querystring, "=", statement.Engine.dialect.EqStr(), -1) } diff --git a/xorm.go b/xorm.go index f493d8ac..7685ab41 100644 --- a/xorm.go +++ b/xorm.go @@ -17,7 +17,7 @@ import ( ) const ( - Version string = "0.5.2.0316" + Version string = "0.5.2.0323" ) func regDrvsNDialects() bool {