Skip to content

fix table schema and table catalog mixup#14

Merged
jinzhu merged 1 commit intogo-gorm:masterfrom
asmeikal:master
Oct 22, 2020
Merged

fix table schema and table catalog mixup#14
jinzhu merged 1 commit intogo-gorm:masterfrom
asmeikal:master

Conversation

@asmeikal
Copy link
Copy Markdown
Contributor

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

My previous PR mixed up table_schema and table_catalog. In postgres, the current database is stored in table_catalog, while in mysql it's stored in table_schema. I mixed them up while opening the two PRs.

Right now, theColumnTypes implementation for postgres returns an empty list of columns. This PR fixes this.

The tests I were running were not covering the case where no column was found. I fixed them here: go-gorm/playground#183

I'm sorry for the mistake.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants