You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The driver now supports the ADOdb standard method setConnectionParameter
for setting pre-connection parameters, e.g.
setConnectionParameter(MYSQLI_READ_DEFAULT_FILE,'/home/test/my.cnf')
The driver specific optionFlags is now deprecated and will be removed in
a later release
To deprecate the $optionFlags feature, I'd sugest removing the empty array assignment, and instead add an information message to inform users they're relying on an obsolete feature, e.g. something like
if ($this->debug) {
ADOConnection::outp("optionFlags is deprecated, please use setConnectionParameter() instead");
}
I would also add a docblock before the property definition to indicate its deprecated status.
The setConnectionParameter(key,value) method only accepts a single
unique value, but in mysql, parameters with the same key can be
'stacked', e.g.
$db->setConnectionParameter(MYSQLI_READ_DEFAULT_GROUP, "max_allowed_packet=50M");
$db->setConnectionParameter(MYSQLI_READ_DEFAULT_GROUP, "default-character-set=big5");
Method has been changed to allow this to occur.
Fixes#187
Until deprecated optionFlags is removed, connectionParameters should
merge with it.
Re-initialization of array accidentally left in due to debugging
commit 8b20bc7.
Issue #188
Driver should support standard parameter passing method instead of driver specific
$optionFlags
The text was updated successfully, but these errors were encountered: