65631e05 by slene

fix orm test

1 parent a879e412
...@@ -1417,7 +1417,7 @@ func TestRawQueryRow(t *testing.T) { ...@@ -1417,7 +1417,7 @@ func TestRawQueryRow(t *testing.T) {
1417 ) 1417 )
1418 1418
1419 cols = []string{ 1419 cols = []string{
1420 "id", "status", "profile_id", 1420 "id", "Status", "profile_id",
1421 } 1421 }
1422 query = fmt.Sprintf("SELECT %s%s%s FROM %suser%s WHERE id = ?", Q, strings.Join(cols, sep), Q, Q, Q) 1422 query = fmt.Sprintf("SELECT %s%s%s FROM %suser%s WHERE id = ?", Q, strings.Join(cols, sep), Q, Q, Q)
1423 err = dORM.Raw(query, 4).QueryRow(&uid, &status, &pid) 1423 err = dORM.Raw(query, 4).QueryRow(&uid, &status, &pid)
...@@ -1497,7 +1497,7 @@ func TestRawValues(t *testing.T) { ...@@ -1497,7 +1497,7 @@ func TestRawValues(t *testing.T) {
1497 Q := dDbBaser.TableQuote() 1497 Q := dDbBaser.TableQuote()
1498 1498
1499 var maps []Params 1499 var maps []Params
1500 query := fmt.Sprintf("SELECT %suser_name%s FROM %suser%s WHERE %sstatus%s = ?", Q, Q, Q, Q, Q, Q) 1500 query := fmt.Sprintf("SELECT %suser_name%s FROM %suser%s WHERE %sStatus%s = ?", Q, Q, Q, Q, Q, Q)
1501 num, err := dORM.Raw(query, 1).Values(&maps) 1501 num, err := dORM.Raw(query, 1).Values(&maps)
1502 throwFail(t, err) 1502 throwFail(t, err)
1503 throwFail(t, AssertIs(num, 1)) 1503 throwFail(t, AssertIs(num, 1))
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!