-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Add maxLength to ParameterContainer #4726
Add maxLength to ParameterContainer #4726
Conversation
Use the new maxlength data in the Oci8 statement class
This is a tough one for me. I really intended that kind of data to travel in errata, but the primary implementation is for passing additional type hints. Let me chew on this and see if I can make a suggestion that doesn't involve creating an API inside ParameterContainer that (logistically speaking) will only ever be used by Oracle drivers. |
Yeah, totally understand. I can't remember now why I didn't use errata, but I thought there was a reason. I can look into it again too, when i have a second. |
Did you have any ideas here or want me to attempt to work something up in the coming days? |
Sorry, been a busy week/holiday weekend. :-) I started looking into it and now it's all coming back to me. Here are the reasons why I couldn't (and shouldn't IMO) use errata:
So after looking it over, I still stand by my changes. I'm totally open to suggestions, and would love to see what you come up with, but I'm thinking this is the best way to handle this particular problem. Thanks! |
@ralphschindler any thoughts here? |
Requires a rebase |
…d_maxlength_to_param_container
Pulled in master. |
|
||
if ($maxLength) { | ||
$this->offsetSetMaxLength($name, $maxLength); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no test case covering this change to offsetSet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, tests have been updated.
@ralphschindler how do you feel about this one now that some time has passed? |
…container Add maxLength to ParameterContainer
Merged to develop for release with 2.4.0 |
The Oci8/Statement class currently sets the max length parameter of oci_bind_by_name to -1. I need to be able to manually set this parameter.
This is my approach to doing this.