session_cols_test.go 342 B

12345678910111213141516
  1. // Copyright 2017 The Xorm Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package xorm
  5. import "testing"
  6. func TestSetExpr(t *testing.T) {
  7. type User struct {
  8. Id int64
  9. Show bool
  10. }
  11. testEngine.SetExpr("show", "NOT show").Id(1).Update(new(User))
  12. }