diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2023-05-16 17:00:20 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2023-05-17 08:53:58 +0200 |
commit | d07cc6706ef3b382fa16a104c97b69bc2d2365e5 (patch) | |
tree | 2607f57b5f539cb052e84ba312d5fb4c507b331d /sw | |
parent | 24b15bc11b57aaeb3961b26ab636c3cf2d18fddc (diff) |
ScriptForge - database.GetRows() tdf#155204 error when no data
The complete expected bheviour is:
when there is no data returned by the query,
- either GetRows() returns an empty array, (Header := False)
- or GetRows() returns an array with a single
row containing the column names only (Header := True)
In the example given in the bug report,
GetRows() gives an unexpected error.
Actually the "end-of-file" status is tested
with the isAfterLast() indicator.
It seems better to rely on the Boolean value
returned by the first() and next() methods applied
on the resultset.
Change-Id: Ibe97dbbcb03d45ebb9184fab2733abe4e04963a6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151844
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Diffstat (limited to 'sw')
0 files changed, 0 insertions, 0 deletions