mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Merge pull request #278 from uweber/SQLGetTypeInfo_segv
Fix segfault when attempting to access empty table (e.g. from ODBC)
This commit is contained in:
commit
8ddf8e6411
@ -464,6 +464,8 @@ mdb_fetch_row(MdbTableDef *table)
|
||||
do {
|
||||
if (table->is_temp_table) {
|
||||
GPtrArray *pages = table->temp_table_pages;
|
||||
if (pages->len == 0)
|
||||
return 0;
|
||||
rows = mdb_get_int16(
|
||||
g_ptr_array_index(pages, table->cur_pg_num-1),
|
||||
fmt->row_count_offset);
|
||||
|
Loading…
Reference in New Issue
Block a user