# File lib/dbd_db2/DB2.rb, line 149 def do(stmt, *bindvars) rc, sth = SQLAllocHandle(SQL_HANDLE_STMT, @handle) error(rc, "Could not allocate Statement") sql = bind(self, stmt, bindvars) rc = SQLExecDirect(sth, sql) error(rc, "Could not execute statement") rc, rpc = SQLRowCount(sth) error(rc, "Could not get RPC") rc = SQLFreeHandle(SQL_HANDLE_STMT, sth) error(rc, "Could not free Statement") return rpc end