The explanation proposed for the problem of the parameter-passing does not hold, because the parameters pass perfectly using either tsql or isql, which both use FreeTDS as driver. The problem lies in the DBD-Sybase library, and I bet is because I may have two different libraries in my system.