Skip to main content

SqlOra

Namespace: PPJ.Runtime.Sql

Assembly: PPJ.Runtime.49 (4.9.0.0)

Oracle specific functions implementation.

public class SqlOra

Properties

Static memberMaxArrayLength

Int32: Returns/Sets the maximum number of elements for return array parameters. The total maximum size in bytes is 16,777,216.

Static memberMaxNonStringSize

Int32: Returns/Sets the maximum size for non-string return parameters.

Static memberMaxStringElementSize

Int32: Returns/Sets the maximum size of return string elements in array parameters.

Static memberMaxStringSize

Int32: Returns/Sets the maximum size of return string parameters.

Methods

Static memberPLSQLCommand(hSql, command)

Executes an Oracle PL/SQL stored procedure. The first parameter identifies the SQL handle to the database. The second parameter is a command string used to invoke a PL/SQL stored procedure. For some strange reason, PLSQLCommand bind vars don't use the colon delimiter, so we need to parse the bind vars, add the delimiter and reassemble the string.

ParameterTypeDescription
hSqlSalSqlHandle
commandString

Returns: Boolean.

Static memberPLSQLExecute(hSql)

This function executes the anonymous PL/SQL block that was prepared using SqlOraPLSQLPrepare. If the execution succeeds, then all output parameters from the PL/SQL block are updated by the time the control returns to the user.

ParameterTypeDescription
hSqlSalSqlHandleThe sql handle associated with the prepared Anonymous PL/SQL block.

Returns: Boolean. Boolean

Static memberPLSQLPrepare(hSql, plsql)

This function compiles the anonymous PL/SQL block. This function looks very much like the regular SqlPrepare function, but the underlying code is meant specifically for handling Oracle PL/SQL blocks.

ParameterTypeDescription
hSqlSalSqlHandleA handle that identifies a database connection.
plsqlStringThe actual anonymous PL/SQL block that the user wants to prepare. That will also contain the input and output variables.

Returns: Boolean. bOk