Skip to content

Commit 677b06a

Browse files
committed
chore(sql): Add a comment about sql needing tests
1 parent 72ec2c4 commit 677b06a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/qds/datasource.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ func (rs *RecordStream) Next(ctx context.Context) (*execution.Record, error) {
179179

180180
aliasedRecord := make(map[octosql.VariableName]octosql.Value)
181181
if rec, ok := ent.Value.([]interface{}); ok {
182+
// TODO(dustmop): Add tests for sql command, especially for this line which
183+
// iterates over only a slice of the records.
182184
for i, x := range rec[:len(rs.aliasedFields)] {
183185
switch v := x.(type) {
184186
case string:

0 commit comments

Comments
 (0)