kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Error on jumping to foreign key #102

Closed wallace11 closed 3 years ago

wallace11 commented 3 years ago

I'm using MySQL with MariaDB client. Upon jumping to foreign key I get the following error:

Error detected while processing function db_ui#dbout#jump_to_foreign_table[17]..db_ui#schemas#query[1]..<SNR>43_format_query:                                                   
 line    1:
 E716: Key not present in Dictionary: "conn,   'interactive' )"
 E116: Invalid arguments for function db#adapter#dispatch
 E15: Invalid expression: db#adapter#dispatch(   type(a:db) == v:t_string ? a:db : a:db.conn,   'interactive' )
 Error detected while processing function db_ui#dbout#jump_to_foreign_table[17]..db_ui#schemas#query:
 line    1:
 E475: Invalid argument: expected String or List
 E712: Argument of map() must be a List or Dictionary
 Error detected while processing function db_ui#dbout#jump_to_foreign_table[17]..<lambda>3[1]..<SNR>43_results_parser:
 line    4:
 E712: Argument of map() must be a List or Dictionary

Now, this used to be working just fine until a couple of months ago. I tried to revert to an earlier commit but somehow issue still persists. Led me to thinking this may have happened due to a client update.

Please let me know if more information is required.

Tested on:

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kristijanhusak commented 3 years ago

I'll take a look.

kristijanhusak commented 3 years ago

I pushed a fix. Can you let me know if it works now?

wallace11 commented 3 years ago

@kristijanhusak It works! Thank you so much :)