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

ORM: Case-insensitive column map option #11802

Closed
wants to merge 4 commits into from
Closed

ORM: Case-insensitive column map option #11802

wants to merge 4 commits into from

Conversation

Skydev0h
Copy link
Contributor

@Skydev0h Skydev0h commented May 18, 2016

Added a global ORM setting that allows to try to find a key in column map case-insensitively if it was not found by an exact match at first time. Can be a real fix for many Oracle bugs, because Phalcon does not expect that column names are converted to uppercase by Oracle in the query result.

This is a real fix for #10532, because orm.ignore_unknown_columns just suppresses error, while _groupResult will return NULL which may have unintended consequences, and of course Model::count() will not work in this case. This may be a fix for #1652, #760, #10490, but did not check all those cases yet.

Added a global ORM setting that allows to try to find a key in column
map case-insensitively if it was not found by an exact match at first
time. Can be a real fix for many Oracle bugs, because Phalcon does not
expect that column names are converted to uppercase by Oracle in the
result.
"orm.try_ci_column_map": {
"type": "bool",
"default": false
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix please indents

@sergeyklay
Copy link
Contributor

Could you please rebase?

Skydev0h added 3 commits May 18, 2016 14:50
Added a global ORM setting that allows to try to find a key in column
map case-insensitively if it was not found by an exact match at first
time. Can be a real fix for many Oracle bugs, because Phalcon does not
expect that column names are converted to uppercase by Oracle in the
result.
Tabs -> spaces. Sorry for that.
@Skydev0h
Copy link
Contributor Author

@sergeyklay Tried to do the rebase, merge and fixing the indents.
Commits are a little mess at the moment, but I couldn't properly squash them.

@sjinks sjinks closed this Apr 26, 2017
@sjinks sjinks reopened this Apr 26, 2017
@sergeyklay
Copy link
Contributor

@Skydev0h ping

@sergeyklay sergeyklay self-assigned this Apr 26, 2017
@niden niden mentioned this pull request Nov 2, 2018
3 tasks
@niden
Copy link
Member

niden commented Nov 2, 2018

Closed in favor of #13569

@niden niden closed this Nov 2, 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.

4 participants