Skip to content

Commit

Permalink
store table filenum
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanMassot committed Aug 22, 2024
1 parent 6d2bf3a commit 00836ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tables/tables.tbh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ type tbl_type
field_num_offset as word
num_of_fields as byte
clean_start as no_yes
filenum as byte
end type

type struct_tbl_timestamp
Expand Down
3 changes: 3 additions & 0 deletions tables/tables.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ no_field_found:

tbl_item.clean_start=NO

tbl_item.filenum=255

if tbl_info_index<TBL_MAX_NUM_TABLES then
tbl_info(tbl_info_index)=tbl_item
end if
Expand Down Expand Up @@ -920,6 +922,7 @@ fail_to_open:

tbl_info_index=f
tbl_selected_file_name=file_name
tbl_info(tbl_info_index).filenum=i
tbl_get_num_records(tbl_selected_all_rc,YES)

if fd.transactionstart()<>PL_FD_STATUS_OK then goto fd_error
Expand Down

0 comments on commit 00836ee

Please sign in to comment.