Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1913 Database export should ignore views #1973

Merged
merged 2 commits into from
Jun 23, 2015
Merged

Fix #1913 Database export should ignore views #1973

merged 2 commits into from
Jun 23, 2015

Conversation

willhartman
Copy link
Contributor

This only affected MySQL and MySQLi.

SQLite implementation already specifies tables only.
PostgreSQL doesn't include the views in information_schema.tables anyway.

@willhartman
Copy link
Contributor Author

#1913

@Destroy666x Destroy666x added the b:1.8 Branch: 1.8.x label Apr 25, 2015
@Destroy666x
Copy link
Contributor

The MySQL solution seems to be ok (haven't tested yet though), but what about PgSQL/SQLite? Both support views AFAIK. SQLite code seems to get only the table type already, pgsql queries only information_schema.table with a table_schema='public' check and both solutions do the trick, am I correct?

@JN-Jones
Copy link
Contributor

SQLite implementation already specifies tables only.
PostgreSQL doesn't include the views in information_schema.tables anyway.

@euantorano
Copy link
Member

Looks good to me, thanks!

euantorano added a commit that referenced this pull request Jun 23, 2015
Fix #1913 Database export should ignore views
@euantorano euantorano merged commit d16574c into mybb:feature Jun 23, 2015
@Destroy666x
Copy link
Contributor

Missed the reply:

SQLite implementation already specifies tables only.
PostgreSQL doesn't include the views in information_schema.tables anyway.

You're right, didn't notice it earlier somehow, I think github showed a blank 1st comment for some reason.

Anyways, I can confirmt it works too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants