Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TSQLCallableStatement.cxx
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TSQLCallableStatement.cxx
1
// $Id: TSQLCallableStatement.cxx,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
2
//*-- Author : Valeriy Onuchin 14/02/2000
3
//
4
6
//
7
// A TSQLCallableStatement extends the functionality of a
8
// TSQLPreparedStatement, by allowing output parameters.
9
//
10
// The ODBC escapes for calling stored procedures and functions
11
// should be used. A procedure call is prepared like this:
12
//
13
// TSQLCallableStatement* cstmt =
14
// con->PrepareCall("{call my_procedure(?,?,?)}");
15
//
16
//
17
// And for a function call (a procedure that returns a value), the
18
// following syntax should be used:
19
//
20
// TSQLCallableStatement* cstmt=
21
// con->PrepareCall("{?=call my_function(?,?)}");
22
//
23
// All parameters in a TSQLCallableStatement are treated
24
// as input/output parameters, unless they are registered as
25
// output-only parameters with registerOutParameter(). Note that
26
// output-only parameters must be registered with their proper
27
// SQL type prior to executing a TSQLCallableStatement.
28
//
29
// The interface used to execute SQL stored procedures. It provides a
30
// stored procedure SQL escape that allows stored procedures to be
31
// called in a standard way for all RDBMSs. This escape syntax has
32
// one form that includes a result parameter and one that does not.
33
// If used, the result parameter must be registered as an OUT parameter.
34
// The other parameters can be used for input, output or both.
36
// Parameters are referred to sequentially, by number.
37
// The first parameter is 1.
38
//
39
// {?= call ?procedure-name?[?arg1?,?arg2?, ...]}
40
// {call ?procedure-name?[?arg1?,?arg2?, ...]}
41
//
42
// IN parameter values are set using the set methods inherited from
43
// TSQLPreparedStatement. The type of all OUT parameters must be
44
// registered prior to executing the stored procedure; their values
45
// are retrieved after execution via the get methods provided here.
46
//
47
// A TSQLCallableStatement can return one TSQLResultSet or multiple
48
// TSQLResultSet objets. Multiple TSQLResultSet objects are handled
49
// using operations inherited from TSQLStatement.
50
//
51
// For maximum portability, a call's TSQLResultSet objects and update
52
// counts should be processed prior to getting the values of output
53
// parameters.
54
//
55
// See also:
56
// TSQLConnection::PrepareCall(TString), TSQLResultSet
57
// TSQLStatement TSQLPreparedStatement
58
//
59
// Note:
60
// - Callable statments not supported by MySQL.
61
// - I failed to use with OpenLink ODBC driver to Oracle
62
//
64
65
#include <
RDBC/TSQLCallableStatement.h
>
66
67
ClassImpQ
(
TSQLCallableStatement
)
68
RDBC
blob
master
rdbc
TSQLCallableStatement.cxx
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:48
using
1.8.2 with
sPHENIX GitHub integration