diff --git a/orm/orm_test.go b/orm/orm_test.go index 0f8ad81a..cfdcc1a7 100644 --- a/orm/orm_test.go +++ b/orm/orm_test.go @@ -1417,7 +1417,7 @@ func TestRawQueryRow(t *testing.T) { ) cols = []string{ - "id", "status", "profile_id", + "id", "Status", "profile_id", } query = fmt.Sprintf("SELECT %s%s%s FROM %suser%s WHERE id = ?", Q, strings.Join(cols, sep), Q, Q, Q) err = dORM.Raw(query, 4).QueryRow(&uid, &status, &pid) @@ -1497,7 +1497,7 @@ func TestRawValues(t *testing.T) { Q := dDbBaser.TableQuote() var maps []Params - query := fmt.Sprintf("SELECT %suser_name%s FROM %suser%s WHERE %sstatus%s = ?", Q, Q, Q, Q, Q, Q) + query := fmt.Sprintf("SELECT %suser_name%s FROM %suser%s WHERE %sStatus%s = ?", Q, Q, Q, Q, Q, Q) num, err := dORM.Raw(query, 1).Values(&maps) throwFail(t, err) throwFail(t, AssertIs(num, 1))