comparison: dbd/oracle/dbd_oracle.h
dbd/oracle/dbd_oracle.h
- changeset 17
- 21c4feaeafe7
- child 27
- 1d2369ebee21
equal
deleted
inserted
replaced
|
1 #include <oci.h> |
|
2 #include <dbd/common.h> |
|
3 |
|
4 #define DBD_ORACLE_CONNECTION "DBD.Oracle.Connection" |
|
5 #define DBD_ORACLE_STATEMENT "DBD.Oracle.Statement" |
|
6 |
|
7 typedef struct _bindparams { |
|
8 OCIParam *param; |
|
9 text *name; |
|
10 ub4 name_len; |
|
11 ub2 data_type; |
|
12 ub2 max_len; |
|
13 char *data; |
|
14 OCIDefine *define; |
|
15 sb2 null; |
|
16 } bindparams_t; |
|
17 |
|
18 /* |
|
19 * connection object |
|
20 */ |
|
21 typedef struct _connection { |
|
22 OCIEnv *oracle; |
|
23 OCISvcCtx *svc; |
|
24 OCIError *err; |
|
25 OCIServer *srv; |
|
26 OCISession *auth; |
|
27 int autocommit; |
|
28 } connection_t; |
|
29 |
|
30 /* |
|
31 * statement object |
|
32 */ |
|
33 typedef struct _statement { |
|
34 OCIStmt *stmt; |
|
35 connection_t *conn; |
|
36 int num_columns; |
|
37 } statement_t; |
|
38 |