aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/statement.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r--src/interfaces/odbc/statement.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c
index f313f926f3c..b4e33d05923 100644
--- a/src/interfaces/odbc/statement.c
+++ b/src/interfaces/odbc/statement.c
@@ -35,7 +35,7 @@ static struct
{
int type;
char *s;
-} Statement_Type[] =
+} Statement_Type[] =
{
{
@@ -202,7 +202,7 @@ PGAPI_FreeStmt(HSTMT hstmt,
* StatementClass implementation
*/
void
-InitializeStatementOptions(StatementOptions * opt)
+InitializeStatementOptions(StatementOptions *opt)
{
opt->maxRows = 0; /* driver returns all rows */
opt->maxLength = 0; /* driver returns all data for char/binary */
@@ -284,7 +284,7 @@ SC_Constructor(void)
char
-SC_Destructor(StatementClass * self)
+SC_Destructor(StatementClass *self)
{
mylog("SC_Destructor: self=%u, self->result=%u, self->hdbc=%u\n", self, self->result, self->hdbc);
SC_clear_error(self);
@@ -356,7 +356,7 @@ SC_Destructor(StatementClass * self)
* data-at-execution parameters that was allocated in SQLPutData.
*/
void
-SC_free_params(StatementClass * self, char option)
+SC_free_params(StatementClass *self, char option)
{
int i;
@@ -421,7 +421,7 @@ statement_type(char *statement)
* from SQLFreeStmt(SQL_CLOSE)
*/
char
-SC_recycle_statement(StatementClass * self)
+SC_recycle_statement(StatementClass *self)
{
ConnectionClass *conn;
@@ -507,7 +507,7 @@ SC_recycle_statement(StatementClass * self)
* Reset only parameters that have anything to do with results
*/
self->status = STMT_READY;
- self->manual_result = FALSE; /* very important */
+ self->manual_result = FALSE; /* very important */
self->currTuple = -1;
self->rowset_start = -1;
@@ -537,7 +537,7 @@ SC_recycle_statement(StatementClass * self)
/* Pre-execute a statement (SQLPrepare/SQLDescribeCol) */
void
-SC_pre_execute(StatementClass * self)
+SC_pre_execute(StatementClass *self)
{
mylog("SC_pre_execute: status = %d\n", self->status);
@@ -576,7 +576,7 @@ SC_pre_execute(StatementClass * self)
/* This is only called from SQLFreeStmt(SQL_UNBIND) */
char
-SC_unbind_cols(StatementClass * self)
+SC_unbind_cols(StatementClass *self)
{
Int2 lf;
@@ -597,7 +597,7 @@ SC_unbind_cols(StatementClass * self)
void
-SC_clear_error(StatementClass * self)
+SC_clear_error(StatementClass *self)
{
if (self->errormsg_malloced && self->errormsg)
free(self->errormsg);
@@ -613,7 +613,7 @@ SC_clear_error(StatementClass * self)
* of the result, statement, connection, and socket messages.
*/
char *
-SC_create_errormsg(StatementClass * self)
+SC_create_errormsg(StatementClass *self)
{
QResultClass *res = self->result;
ConnectionClass *conn = self->hdbc;
@@ -652,7 +652,7 @@ SC_create_errormsg(StatementClass * self)
char
-SC_get_error(StatementClass * self, int *number, char **message)
+SC_get_error(StatementClass *self, int *number, char **message)
{
char rv;
@@ -684,14 +684,14 @@ SC_get_error(StatementClass * self, int *number, char **message)
* someday, such as mapping a key to a 32 bit value
*/
unsigned long
-SC_get_bookmark(StatementClass * self)
+SC_get_bookmark(StatementClass *self)
{
return (self->currTuple + 1);
}
RETCODE
-SC_fetch(StatementClass * self)
+SC_fetch(StatementClass *self)
{
static char *func = "SC_fetch";
QResultClass *res = self->result;
@@ -741,7 +741,7 @@ SC_fetch(StatementClass * self)
return SQL_NO_DATA_FOUND;
}
else if (retval > 0)
- (self->currTuple)++; /* all is well */
+ (self->currTuple)++; /* all is well */
else
{
mylog("SC_fetch: error\n");
@@ -876,7 +876,7 @@ SC_fetch(StatementClass * self)
RETCODE
-SC_execute(StatementClass * self)
+SC_execute(StatementClass *self)
{
static char *func = "SC_execute";
ConnectionClass *conn;
@@ -1107,7 +1107,7 @@ SC_execute(StatementClass * self)
void
-SC_log_error(char *func, char *desc, StatementClass * self)
+SC_log_error(char *func, char *desc, StatementClass *self)
{
#ifdef PRN_NULLCHECK
#define nullcheck(a) (a ? a : "(NULL)")