Skip to content

Commit 8953f17

Browse files
rsomla1silvakid
authored andcommitted
WL#10676: DevAPI: asynchronous execution - part1 - fixes
Fix the issue when result meta-data is taken from a cursor - this cursor can be closed after reading all rows and then it is no longer possible to use it. But we copy meta-data to the m_mdata member and it can be taken from there instead.
1 parent d6decaa commit 8953f17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/result.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,9 +1071,9 @@ class Result_impl
10711071
inline
10721072
col_count_t Result_impl::get_col_count() const
10731073
{
1074-
if (!m_cursor)
1074+
if (!m_cursor || !m_mdata)
10751075
THROW("No result set");
1076-
return m_cursor->col_count();
1076+
return m_mdata->col_count();
10771077
}
10781078

10791079
inline

0 commit comments

Comments
 (0)