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

Simplify how to get indexData from mysql/mariadb #1449

Merged
merged 3 commits into from
Nov 13, 2018

Conversation

natanfelles
Copy link
Contributor

Description

Allow to get all mysql/mariadb index types (PRIMARY, INDEX, UNIQUE, FULLTEXT and SPATIAL) without regex. Currently was possible to get PRIMARY, INDEX, UNIQUE types.

Checklist:

  • Securely signed commits
  • Component(s) with PHPdocs
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

}

return $retval;
return $keys;
Copy link
Contributor Author

@natanfelles natanfelles Nov 10, 2018

Choose a reason for hiding this comment

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

The tests are failing due to return the $keys indexes with the keys names. The test expect to be indexes as integers.

I think about return the indexes with the key names by default, then update the tests - what do you think? Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

That should be fine.

@lonnieezell lonnieezell merged commit 721fd04 into codeigniter4:develop Nov 13, 2018
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