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

Update schema for oracle compatibility issue #104

Closed
wants to merge 1 commit into from

Conversation

@oparadis
Copy link

commented Jul 24, 2012

This PR changes some "page" and "site" fields from "text" to "string(4000)" because oracle doesn't support where conditions on CLOB (text equivalent). It requires the use of a Oracle function to convert the clob into a string of 4000 characters which then works the same way as a varchar2(4000).

This fix also works on MySQL 5.0.3+ since it supports varchar fields up to 65535 characters.

PS: I made some style updates on the xml files too

@dinamic

This comment has been minimized.

Copy link
Contributor

commented Jun 26, 2013

If using fixed length string, doctrine will rather use char instead of varchar.
This will make the database content much larger, so even if one uses 10 characters, 4,000 will be allocated.

IMHO this issue should not be specific to this bundle, rather than reported to the doctrine team.
The workaround is just that - a workaround and I would not advise merging it here.

@rande rande closed this Aug 14, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.