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

Support views and foreign tables in yii\pgsql\Schema.findTableNames #7834

Closed
wants to merge 7 commits into from

Conversation

nineinchnick
Copy link
Contributor

References #7833.

@samdark
Copy link
Member

samdark commented Mar 22, 2015

Is it possible to add some tests for it?

@nineinchnick
Copy link
Contributor Author

Sure, it's a good idea since I was wondering if there will be a difference between an ordinary and materialized view.

@samdark samdark added this to the 2.0.x milestone Mar 23, 2015
@samdark samdark self-assigned this Mar 23, 2015
@nineinchnick
Copy link
Contributor Author

I've added test but actually ran only sqlite and pgsql.

I also found and fixed one bug in mssql tests introduced by dd15857, too much copy and paste and innodb was left in mssql schema. But that just means nobody executed those tests since Feb16.

@@ -177,8 +177,10 @@ protected function findTableNames($schema = '')
$schema = $this->defaultSchema;
}
$sql = <<<EOD
SELECT table_name, table_schema FROM information_schema.tables
WHERE table_schema=:schema AND table_type='BASE TABLE'
SELECT c.relname AS table_name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

table_schema isn't selected anymore. Are you sure it's OK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It wasn't used.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK.

@samdark samdark changed the title support views and foreign tables in yii\pgsql\Schema.findTableNames Support views and foreign tables in yii\pgsql\Schema.findTableNames Mar 24, 2015
@samdark samdark modified the milestones: 2.0.4, 2.0.x Mar 24, 2015
@nineinchnick
Copy link
Contributor Author

@samdark this one is also ready for merge

@samdark
Copy link
Member

samdark commented Mar 30, 2015

Except changelog :) Also it seems there are conflicts with master now.

@nineinchnick
Copy link
Contributor Author

@samdark done, but somehow I messed up the skip CI part.

@samdark
Copy link
Member

samdark commented Mar 30, 2015

Merged 29304a1 Thanks!

@samdark samdark closed this Mar 30, 2015
@cebe
Copy link
Member

cebe commented Mar 30, 2015

@nineinchnick the syntax is a bit unnatural: [ci skip]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants