Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
table sqlPrepSelect
    (string sqlStatement,
     any parameter [,...],
     string DBProfile [,...],
	 boolean disableCommitautoCommit,  //Optional)


ParameterDescription

sqlStatement

SQL string containing one or more parameter placeholders ('?').

parameter(s)

Value(s) to bind against parameter placeholders.

DBProfile/s)

Name of the database profile(s) to use for access.

disableCommit autoCommit

An optional parameter to disable enable the commit statement from being to performed at the end of every SQL transaction for this particular function. Setting this parameter to false will result in the no commit statement to be performed at the end of every SQL transaction for this particular function. By default,  will have the disableCommit autoCommit set to true unless otherwise changed via this parameter.

Info

It should be noted that on recent Oracle versions, the DBLink SQL transaction behaviour has changed, where every single SQL statement for remote database transaction requires a commit or rollback statement in order to close a connection.

In addition, PostgreSQL users should set this to false as every statement needs to be committed. 


Returns

Null in case of failure otherwise a table, holding the SQL select result.

...

Code Block
table sqlPrepDynamicSelect
    (string sqlStatement,
     list<any> parameters,
     string DBProfile [,...],
	 boolean disableCommitautoCommit,  //Optional)


ParameterDescription

sqlStatement

SQL string containing one or more parameter placeholders ('?').

The string may also contain variables that substitute any part of the statement such as table- or column names.

Note
titleNote!

Validation of sqlStatement is performed in runtime and not during configuration. Make sure that number of placeholders matches the actual number of parameters.


parameter(s)

Value(s) to bind against parameter placeholders

DBProfile/s)

Name of the database profile(s) to use for access

disableCommit autoCommit

An optional parameter to disable enable the commit statement from being to performed at the end of every SQL transaction for this particular function. Setting this parameter to false will result in the no commit statement to be performed at the end of every SQL transaction for this particular function. By default,  will have the disableCommit autoCommit set to true unless otherwise changed via this parameter.

Info

It should be noted that on recent Oracle versions, the DBLink SQL transaction behaviour has changed, where every single SQL statement for remote database transaction requires a commit or rollback statement in order to close a connection.


Returns

Null in case of failure otherwise a table, holding the SQL select result

...