mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Change SC_fetch() to not retrieve data in case the
SQL_RETRIEVE_DATA option is SQL_RD_OFF. This would avoid a crash when scrolling Grid controls.
This commit is contained in:
@ -780,8 +780,12 @@ SC_fetch(StatementClass *self)
|
|||||||
updret = SQL_ROW_DELETED;
|
updret = SQL_ROW_DELETED;
|
||||||
num_cols -= 2;
|
num_cols -= 2;
|
||||||
}
|
}
|
||||||
if (!self->options.retrieve_data) /* data isn't required */
|
#endif /* DRIVER_CURSOR_IMPLEMENT */
|
||||||
|
if (self->options.retrieve_data == SQL_RD_OFF) /* data isn't required */
|
||||||
|
#ifdef DRIVER_CURSOR_IMPLEMENT
|
||||||
return updret ? updret + 10 : SQL_SUCCESS;
|
return updret ? updret + 10 : SQL_SUCCESS;
|
||||||
|
#else
|
||||||
|
return SQL_SUCCESS;
|
||||||
#endif /* DRIVER_CURSOR_IMPLEMENT */
|
#endif /* DRIVER_CURSOR_IMPLEMENT */
|
||||||
for (lf = 0; lf < num_cols; lf++)
|
for (lf = 0; lf < num_cols; lf++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user