Fix calls to Raw and RawG

This commit is contained in:
Patrick O'brien 2016-09-15 15:13:09 +10:00
parent 0abfe1cba6
commit 78de983d7d
2 changed files with 2 additions and 149 deletions

View file

@ -373,7 +373,7 @@ func TestAppendSelect(t *testing.T) {
func TestSQL(t *testing.T) {
t.Parallel()
q := SQL(&sql.DB{}, "thing", 5)
q := Raw(&sql.DB{}, "thing", 5)
if q.rawSQL.sql != "thing" {
t.Errorf("Expected %q, got %s", "thing", q.rawSQL.sql)
}
@ -385,7 +385,7 @@ func TestSQL(t *testing.T) {
func TestSQLG(t *testing.T) {
t.Parallel()
q := SQLG("thing", 5)
q := RawG("thing", 5)
if q.rawSQL.sql != "thing" {
t.Errorf("Expected %q, got %s", "thing", q.rawSQL.sql)
}