Added check for database views in table_exists? in SQLite3Adapter
SQLite3Adapter now checks for views in table_exists? fixes: 14041
I'm afraid there are a lot of unexpected repercussions here.
What if the view is readonly for example?
Also, what about other database adapters? MySQL takes only tables.
@dmathieu MySQL show tables; by default includes the views.
Also, as mentioned in #14041 (comment) the same is true for Postgres.
While writing these tests it became obvious that the SQLite3Adapter is behaving different from the other adapters.
@girishso thank you 💛
Woohoo my first rails commit!! :)
Thanks @senny! wondering how you found this 7 month old pull request!
@girishso working through my todo-list. Sadly there's still stuff on it that's 7 months old. Thank you for your patience.