In particular, the driver uses the same client library that PSQL uses, and just passes the raw string to it if you're using vanilla ns_db dml. The bindvar emulator mangles the string in order to insert Tcl variable values, etc, which is why I asked if you were using the new form.
So, given that the driver just passes the querystring through the same client library that PSQL passes your querystring to, it *should* be possible to recreate the problem in PSQL...
It *should* be ... :)