@@ -16,46 +16,46 @@ func TestEngine_Query(t *testing.T) {
1616 testQuery (t , e ,
1717 "SELECT i FROM mytable;" ,
1818 []sql.Row {
19- sql .NewMemoryRow (int64 (1 )),
20- sql .NewMemoryRow (int64 (2 )),
21- sql .NewMemoryRow (int64 (3 )),
19+ sql .NewRow (int64 (1 )),
20+ sql .NewRow (int64 (2 )),
21+ sql .NewRow (int64 (3 )),
2222 },
2323 )
2424
2525 testQuery (t , e ,
2626 "SELECT i FROM mytable WHERE i = 2;" ,
2727 []sql.Row {
28- sql .NewMemoryRow (int64 (2 )),
28+ sql .NewRow (int64 (2 )),
2929 },
3030 )
3131
3232 testQuery (t , e ,
3333 "SELECT i FROM mytable ORDER BY i DESC;" ,
3434 []sql.Row {
35- sql .NewMemoryRow (int64 (3 )),
36- sql .NewMemoryRow (int64 (2 )),
37- sql .NewMemoryRow (int64 (1 )),
35+ sql .NewRow (int64 (3 )),
36+ sql .NewRow (int64 (2 )),
37+ sql .NewRow (int64 (1 )),
3838 },
3939 )
4040
4141 testQuery (t , e ,
4242 "SELECT i FROM mytable WHERE s = 'a' ORDER BY i DESC;" ,
4343 []sql.Row {
44- sql .NewMemoryRow (int64 (1 )),
44+ sql .NewRow (int64 (1 )),
4545 },
4646 )
4747
4848 testQuery (t , e ,
4949 "SELECT i FROM mytable WHERE s = 'a' ORDER BY i DESC LIMIT 1;" ,
5050 []sql.Row {
51- sql .NewMemoryRow (int64 (1 )),
51+ sql .NewRow (int64 (1 )),
5252 },
5353 )
5454
5555 testQuery (t , e ,
5656 "SELECT COUNT(*) FROM mytable;" ,
5757 []sql.Row {
58- sql .NewMemoryRow (int32 (3 )),
58+ sql .NewRow (int32 (3 )),
5959 },
6060 )
6161}
@@ -91,9 +91,9 @@ func newEngine(t *testing.T) *gitql.Engine {
9191 {"i" , sql .BigInteger },
9292 {"s" , sql .String },
9393 })
94- assert .Nil (table .Insert (int64 (1 ), "a" ))
95- assert .Nil (table .Insert (int64 (2 ), "b" ))
96- assert .Nil (table .Insert (int64 (3 ), "c" ))
94+ assert .Nil (table .Insert (sql . NewRow ( int64 (1 ), "a" ) ))
95+ assert .Nil (table .Insert (sql . NewRow ( int64 (2 ), "b" ) ))
96+ assert .Nil (table .Insert (sql . NewRow ( int64 (3 ), "c" ) ))
9797
9898 db := mem .NewDatabase ("mydb" )
9999 db .AddTable ("mytable" , table )
0 commit comments