You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2007/11/12 08:34:46 UTC
svn commit: r594036 - /apr/apr-util/trunk/dbd/apr_dbd_oracle.c
Author: bojan
Date: Sun Nov 11 23:34:45 2007
New Revision: 594036
URL: http://svn.apache.org/viewvc?rev=594036&view=rev
Log:
Make sure macro int_errorcode is last declaration
Modified:
apr/apr-util/trunk/dbd/apr_dbd_oracle.c
Modified: apr/apr-util/trunk/dbd/apr_dbd_oracle.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_oracle.c?rev=594036&r1=594035&r2=594036&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_oracle.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_oracle.c Sun Nov 11 23:34:45 2007
@@ -1106,11 +1106,12 @@
{
OCIParam *parms;
int i;
- int_errorcode;
ub2 paramtype[DBD_ORACLE_MAX_COLUMNS];
ub2 paramsize[DBD_ORACLE_MAX_COLUMNS];
const char *paramname[DBD_ORACLE_MAX_COLUMNS];
ub4 paramnamelen[DBD_ORACLE_MAX_COLUMNS];
+ int_errorcode;
+
/* Perl uses 0 where we used 1 */
sql->status = OCIStmtExecute(sql->svc, stmt->stmt, sql->err, 0, 0,
NULL, NULL, OCI_DESCRIBE_ONLY);
@@ -1254,11 +1255,11 @@
int *nrows, apr_dbd_prepared_t *statement,
const char **values)
{
- int_errorcode;
OCISnapshot *oldsnapshot = NULL;
OCISnapshot *newsnapshot = NULL;
apr_dbd_transaction_t* trans = sql->trans;
int exec_mode;
+ int_errorcode;
if (trans) {
switch (trans->status) {
@@ -1339,6 +1340,7 @@
OCISnapshot *oldsnapshot = NULL;
OCISnapshot *newsnapshot = NULL;
apr_dbd_transaction_t* trans = sql->trans;
+ int_errorcode;
if (trans) {
switch (trans->status) {
@@ -1365,7 +1367,6 @@
sql->status = OCIStmtExecute(sql->svc, statement->stmt, sql->err, 0, 0,
oldsnapshot, newsnapshot, exec_mode);
switch (sql->status) {
- int_errorcode;
case OCI_SUCCESS:
break;
case OCI_ERROR:
@@ -1641,11 +1642,11 @@
int *nrows, apr_dbd_prepared_t * statement,
const void **values)
{
- int_errorcode;
OCISnapshot *oldsnapshot = NULL;
OCISnapshot *newsnapshot = NULL;
apr_dbd_transaction_t* trans = sql->trans;
int exec_mode;
+ int_errorcode;
if (trans) {
switch (trans->status) {
@@ -1726,6 +1727,7 @@
OCISnapshot *oldsnapshot = NULL;
OCISnapshot *newsnapshot = NULL;
apr_dbd_transaction_t* trans = sql->trans;
+ int_errorcode;
if (trans) {
switch (trans->status) {
@@ -1752,7 +1754,6 @@
sql->status = OCIStmtExecute(sql->svc, statement->stmt, sql->err, 0, 0,
oldsnapshot, newsnapshot, exec_mode);
switch (sql->status) {
- int_errorcode;
case OCI_SUCCESS:
break;
case OCI_ERROR:
@@ -1923,7 +1924,6 @@
*/
static const char *dbd_oracle_get_entry(const apr_dbd_row_t *row, int n)
{
- int_errorcode;
ub4 len = 0;
ub1 csform = 0;
ub2 csid = 0;
@@ -1931,6 +1931,7 @@
char *buf = NULL;
define_arg *val = &row->res->statement->out[n];
apr_dbd_t *sql = row->res->handle;
+ int_errorcode;
if ((n < 0) || (n >= row->res->statement->nout) || (val->ind == -1)) {
return NULL;