Name

prepare — Prepares a statement for execution

Synopsis

Statement.prepare(ses_h, svc_h, sql, yieldflag)

Description

#prepare prepares a statement for execution and returns a Statement object. This is a local call (no round-trip to the server), so the statement is not checked for correctness at this point.

Note

This method is intended to be called by a Database object and is presented here merely for completeness. The first two arguments—ses_h (the session handle) and svc_h (the service handle)—are C-style structs that are used by the OCI. These are internal to a Database object and have no public interface.