EDS: fix for db_close() failure to render current table undefined

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu