EDS: fix for db_close() failure to render current table undefined
- Posted by K_D_R Feb 14, 2012
- 1470 views
While studying the EDS include file std/eds.e
I noticed that the routines which appropriately rendered the current table as "undefined" included these two lines:
current_table_pos = -1 current_table_name = ""
Inserting those two lines in the end of the eds.e routine db_close() at line 1430 after the statement, current_db = -1, and before the statement, key_pointers = {}, seems to correct the problem:
public procedure db_close() -- -- snip -- current_db = -1 current_table_pos = -1 --<--- insert current_table_name = "" --<--- insert key_pointers = {} end procedure
I have not tested this extensively. Please advice if this is not an appropriate "fix".
Regards, Kenneth Rhodes