On 29 Jul 2003 19:08:23 +0100, Dan Rowles wrote:

>To go through and change all of these methods to do a
>"$sth->bind_param(n, $val, SQL_INTEGER)" is a lot of work!

Er, you don't have to. It's the first occurrence of using a value for
some placeholder that defines how it'll be used further on. So bind a
parameter to a type first, and you can go on using the rest of the code
as before. Even

        $sth->bind_param(3, undef, SQL_INTEGER);

will do -- which is a NULL, but a field of type integer.

-- 
        Bart.

Reply via email to