Fixed bug referred to in rt 46597 reported by taioba and identified by
Tim Bunce. In Calls to bind_param for a given statement handle if you
specify a SQL type to bind as this should be "sticky" for that
parameter. That means if you do:
$sth->bind_param(1, $param, DBI::SQL_LONGVARCHAR)
and follow it up with execute calls that also specify the parameter:
$sth->execute("a param");
then the parameter should stick with the SQL_LONGVARCHAR type and not
revert to the default parameter type. The DBI docs (in subversion now)
make it clear the parameter type is sticky for the duration of the
statement but some DBDs allow the parameter to be rebound with a
different type - DBD::ODBC is one of those drivers.
Trackback URL for this post:
http://www.martin-evans.me.uk/trackback/22
Recent comments
35 weeks 2 days ago
37 weeks 5 days ago
39 weeks 2 days ago
39 weeks 3 days ago
47 weeks 4 days ago
48 weeks 5 days ago
50 weeks 22 hours ago
1 year 5 days ago
1 year 4 weeks ago
1 year 7 weeks ago