]> granicus.if.org Git - php/commitdiff
don't propogate an unspecified length to the driver.
authorWez Furlong <wez@php.net>
Wed, 19 Jan 2005 05:25:40 +0000 (05:25 +0000)
committerWez Furlong <wez@php.net>
Wed, 19 Jan 2005 05:25:40 +0000 (05:25 +0000)
Drivers will used a 0 length as a hint that the parameter is an in-out or out
parameter.

ext/pdo/pdo_stmt.c

index aafe14818cbd83d69e922ecb294b5c604c81691c..2e3aa6e25659f5bc26c1ea28b2daea279d200794 100755 (executable)
@@ -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;