File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,9 @@ def _get_row_at(
200
200
) -> Dict [str , numpy .ndarray ]:
201
201
self ._commit ()
202
202
names = "," .join (var_names )
203
- data = self ._client .execute (f"SELECT ({ names } ) FROM { self .cid } WHERE _draw_idx={ idx } ;" )
203
+ # NOTE: The trailing , 👇 is included to get the same signature when len(var_names) == 1.
204
+ query = f"SELECT ({ names } ,) FROM { self .cid } WHERE _draw_idx={ idx } ;"
205
+ data = self ._client .execute (query )
204
206
if not data :
205
207
raise Exception (f"No record found for draw index { idx } ." )
206
208
result = dict (zip (var_names , data [0 ][0 ]))
Original file line number Diff line number Diff line change @@ -255,7 +255,6 @@ def test_insert_draw(self):
255
255
numpy .testing .assert_array_equal (v3 , draw ["v3" ])
256
256
pass
257
257
258
- @pytest .mark .xfail (reason = "issue #56" )
259
258
def test_get_row_at (self ):
260
259
run , chains = fully_initialized (
261
260
self .backend ,
You can’t perform that action at this time.
0 commit comments