From a39d50c95f26c634ce6e253a7ede435687dd7f1e Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 19 Jan 2005 05:25:40 +0000 Subject: [PATCH] don't propogate an unspecified length to the driver. Drivers will used a 0 length as a hint that the parameter is an in-out or out parameter. --- ext/pdo/pdo_stmt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index aafe14818c..2e3aa6e256 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -216,10 +216,6 @@ static int really_register_bound_param(struct pdo_bound_param_data *param, pdo_s if (param->param_type == PDO_PARAM_STR && param->max_value_len <= 0) { convert_to_string(param->parameter); - /* XXX: need to provide a way to set this to something sane, or - * investigate a better way to set the length of output parameters in - * the drivers themselves */ - param->max_value_len = Z_STRLEN_P(param->parameter); } param->stmt = stmt; -- 2.50.1