in reply to My DBI suddenly can't handle placeholders in a LIMIT clause.

I remember a change in DBD::mysql a couple of years ago, where it suddenly became stricter about the type of data being used to fill in the placeholders - a number of scripts which previously worked, suddenly started to fail.

It was as though the DBD was interpreting "0" as a string rather than as a number.

As you have found, binding specific column/data types to each placeholder fixes the problem, and, as a bonus, adds a safety check to the data going to your DB.

Clint

Replies are listed 'Best First'.
Re^2: My DBI suddenly can't handle placeholders in a LIMIT clause.
by erroneousBollock (Curate) on Aug 10, 2007 at 08:45 UTC
    I believe someone wrote DBD::mysql::AutoTypes do deal with those kinds of issues.

    Not sure if it's necessary any longer.

    -David.