diff options
-rw-r--r-- | src/mysqlerl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mysqlerl.c b/src/mysqlerl.c index 431b8cd..0ee04ed 100644 --- a/src/mysqlerl.c +++ b/src/mysqlerl.c @@ -666,7 +666,7 @@ handle_prev(ETERM *msg) ecols = make_cols(fields, num_fields); logmsg("resultoffset: %d, num_rows: %d", resultoffset, numrows); - if (resultoffset == 1) { + if (resultoffset <= 1) { resp = erl_format("{selected, ~w, []}", ecols); } else { resultoffset = resultoffset - 1; |