You need to use either the disable_sth_caching option or "connect_call_use_softcommit" (see "CAVEATS") for your code to function correctly with this driver.
Otherwise you will likely get bizarre error messages such as no statement executing.
The alternative is to use the ODBC driver,
which is more suitable for long running processes such as under Catalyst.

with "connect_call_use_softcommit", you will not be able to see changes made to data in other processes. If this is an issue, use disable_sth_caching as a workaround for the no statement executing errors, this of course adversely affects performance.