Re: EDS:: select or create table
- Posted by jimcbrown (admin) Feb 10, 2012
- 1475 views
Key_gets was not the problem.
I'm not convinced that you are correct with this assertion. What does key_gets() do?
I suspect that this is the key_gets() routine from ed.ex
Could the problem be that you called key_gets() differently. When using it after the NO_TABLE test, you called it with a string containing one blank ... key_gets(" ", {}) but when calling it after the length(dbtblst) < 1 test, you callied with an empty string key_gets("",{}).
Is that significant?
My understanding is that this is very significant. In the former, a hot key is passed in (so pressing spacebar triggers a hot key), but in the latter, no hot keys are passed in.
db table names generally don't include spaces, however, if a space was entered then an empty string would be returned and assigned to answer.
The functional code suggests that db_table_list() is never returning an atom.