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

Do not skip indkey with zero value #2378

Closed
wants to merge 2 commits into from
Closed

Do not skip indkey with zero value #2378

wants to merge 2 commits into from

Conversation

dxops
Copy link

@dxops dxops commented Apr 29, 2016

This is an array of indnatts values that indicate which table columns this index indexes. For example a value of 1 3 would mean that the first and the third table columns make up the index key. A zero in this array indicates that the corresponding index attribute is an expression over the table columns, rather than a simple column reference.

Column name used in index should match to index name, as we dont have any other values for column name and we require it https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/Index.php#L98

Use case is

CREATE INDEX value ON oro_search_index_text USING gin(to_tsvector('english', 'value'))

This is an array of indnatts values that indicate which table columns this index indexes. For example a value of 1 3 would mean that the first and the third table columns make up the index key. *A zero in this array indicates that the corresponding index attribute is an expression over the table columns, rather than a simple column reference.*

Column name used in index should match to index name, as we dont have any other values for column name and we require it https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/Index.php#L98

Use case is

```
CREATE INDEX value ON oro_search_index_text USING gin(to_tsvector('english', 'value'))
```
@deeky666
Copy link
Member

This requires a testcase.

@deeky666 deeky666 self-assigned this May 12, 2016
@morozov morozov closed this Nov 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants