You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when you create a table editor for a table that doesn't reside in the "wordpress" database, by passing a 'table' parameter similar to 'table' => 'myotherdb.mytable' to add_db_table_editor, the resulting table editor is able to retrieve and display the columns, but fails to save changes (insert, update, and delete). From error logs it is shown that "wordpress." is prepended to the table name, ending up with "worpress.myotherdb.mytable" which obviously doesn't exist.
It would be cool to fix this in order to support tables outside the default worpress db :)
Thank you for your nice and neat plugin btw
The text was updated successfully, but these errors were encountered:
There are save_cb, update_cb, and insert_cb that allow you to control how and to where a save call occurs. Currently I am using wpdb->update & wpdb->insert which are already set and connected to the wordpress database.
If you come up with something to solve this please feel free to post here
I noticed that when you create a table editor for a table that doesn't reside in the "wordpress" database, by passing a 'table' parameter similar to 'table' => 'myotherdb.mytable' to add_db_table_editor, the resulting table editor is able to retrieve and display the columns, but fails to save changes (insert, update, and delete). From error logs it is shown that "wordpress." is prepended to the table name, ending up with "worpress.myotherdb.mytable" which obviously doesn't exist.
It would be cool to fix this in order to support tables outside the default worpress db :)
Thank you for your nice and neat plugin btw
The text was updated successfully, but these errors were encountered: