Re: EDS:: select or create table

new topic     » goto parent     » topic index » view thread      » older message » newer message
DerekParnell said...
K_D_R said...

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

DerekParnell said...

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu