@@ -37,7 +37,7 @@ extern GLOBAL_VALUES globals;
37
37
RETCODE SQL_API
38
38
SQLAllocConnect (
39
39
HENV henv ,
40
- HDBC FAR * phdbc )
40
+ HDBC FAR * phdbc )
41
41
{
42
42
EnvironmentClass * env = (EnvironmentClass * ) henv ;
43
43
ConnectionClass * conn ;
@@ -78,11 +78,11 @@ SQLAllocConnect(
78
78
RETCODE SQL_API
79
79
SQLConnect (
80
80
HDBC hdbc ,
81
- UCHAR FAR * szDSN ,
81
+ UCHAR FAR * szDSN ,
82
82
SWORD cbDSN ,
83
- UCHAR FAR * szUID ,
83
+ UCHAR FAR * szUID ,
84
84
SWORD cbUID ,
85
- UCHAR FAR * szAuthStr ,
85
+ UCHAR FAR * szAuthStr ,
86
86
SWORD cbAuthStr )
87
87
{
88
88
ConnectionClass * conn = (ConnectionClass * ) hdbc ;
@@ -135,11 +135,11 @@ SQLConnect(
135
135
RETCODE SQL_API
136
136
SQLBrowseConnect (
137
137
HDBC hdbc ,
138
- UCHAR FAR * szConnStrIn ,
138
+ UCHAR FAR * szConnStrIn ,
139
139
SWORD cbConnStrIn ,
140
- UCHAR FAR * szConnStrOut ,
140
+ UCHAR FAR * szConnStrOut ,
141
141
SWORD cbConnStrOutMax ,
142
- SWORD FAR * pcbConnStrOut )
142
+ SWORD FAR * pcbConnStrOut )
143
143
{
144
144
static char * func = "SQLBrowseConnect" ;
145
145
@@ -285,7 +285,7 @@ CC_Constructor()
285
285
286
286
287
287
char
288
- CC_Destructor (ConnectionClass * self )
288
+ CC_Destructor (ConnectionClass * self )
289
289
{
290
290
mylog ("enter CC_Destructor, self=%u\n" , self );
291
291
@@ -329,7 +329,7 @@ CC_Destructor(ConnectionClass * self)
329
329
330
330
/* Return how many cursors are opened on this connection */
331
331
int
332
- CC_cursor_count (ConnectionClass * self )
332
+ CC_cursor_count (ConnectionClass * self )
333
333
{
334
334
StatementClass * stmt ;
335
335
int i ,
@@ -350,7 +350,7 @@ CC_cursor_count(ConnectionClass * self)
350
350
}
351
351
352
352
void
353
- CC_clear_error (ConnectionClass * self )
353
+ CC_clear_error (ConnectionClass * self )
354
354
{
355
355
self -> errornumber = 0 ;
356
356
self -> errormsg = NULL ;
@@ -360,7 +360,7 @@ CC_clear_error(ConnectionClass * self)
360
360
/* Used to cancel a transaction */
361
361
/* We are almost always in the middle of a transaction. */
362
362
char
363
- CC_abort (ConnectionClass * self )
363
+ CC_abort (ConnectionClass * self )
364
364
{
365
365
QResultClass * res ;
366
366
@@ -384,7 +384,7 @@ CC_abort(ConnectionClass * self)
384
384
385
385
/* This is called by SQLDisconnect also */
386
386
char
387
- CC_cleanup (ConnectionClass * self )
387
+ CC_cleanup (ConnectionClass * self )
388
388
{
389
389
int i ;
390
390
StatementClass * stmt ;
@@ -437,7 +437,7 @@ CC_cleanup(ConnectionClass * self)
437
437
}
438
438
439
439
int
440
- CC_set_translation (ConnectionClass * self )
440
+ CC_set_translation (ConnectionClass * self )
441
441
{
442
442
443
443
#ifdef WIN32
@@ -480,7 +480,7 @@ CC_set_translation(ConnectionClass * self)
480
480
}
481
481
482
482
char
483
- CC_connect (ConnectionClass * self , char do_password )
483
+ CC_connect (ConnectionClass * self , char do_password )
484
484
{
485
485
StartupPacket sp ;
486
486
QResultClass * res ;
@@ -733,7 +733,7 @@ CC_connect(ConnectionClass * self, char do_password)
733
733
}
734
734
735
735
char
736
- CC_add_statement (ConnectionClass * self , StatementClass * stmt )
736
+ CC_add_statement (ConnectionClass * self , StatementClass * stmt )
737
737
{
738
738
int i ;
739
739
@@ -765,7 +765,7 @@ CC_add_statement(ConnectionClass * self, StatementClass * stmt)
765
765
}
766
766
767
767
char
768
- CC_remove_statement (ConnectionClass * self , StatementClass * stmt )
768
+ CC_remove_statement (ConnectionClass * self , StatementClass * stmt )
769
769
{
770
770
int i ;
771
771
@@ -785,7 +785,7 @@ CC_remove_statement(ConnectionClass * self, StatementClass * stmt)
785
785
error message with its socket error message.
786
786
*/
787
787
char *
788
- CC_create_errormsg (ConnectionClass * self )
788
+ CC_create_errormsg (ConnectionClass * self )
789
789
{
790
790
SocketClass * sock = self -> sock ;
791
791
int pos ;
@@ -812,7 +812,7 @@ CC_create_errormsg(ConnectionClass * self)
812
812
813
813
814
814
char
815
- CC_get_error (ConnectionClass * self , int * number , char * * message )
815
+ CC_get_error (ConnectionClass * self , int * number , char * * message )
816
816
{
817
817
int rv ;
818
818
@@ -849,7 +849,7 @@ CC_get_error(ConnectionClass * self, int *number, char **message)
849
849
'declare cursor C3326857 for ...' and 'fetch 100 in C3326857' statements.
850
850
*/
851
851
QResultClass *
852
- CC_send_query (ConnectionClass * self , char * query , QueryInfo * qi )
852
+ CC_send_query (ConnectionClass * self , char * query , QueryInfo * qi )
853
853
{
854
854
QResultClass * result_in ,
855
855
* res = NULL ;
@@ -1142,7 +1142,7 @@ CC_send_query(ConnectionClass * self, char *query, QueryInfo * qi)
1142
1142
}
1143
1143
1144
1144
int
1145
- CC_send_function (ConnectionClass * self , int fnid , void * result_buf , int * actual_result_len , int result_is_int , LO_ARG * args , int nargs )
1145
+ CC_send_function (ConnectionClass * self , int fnid , void * result_buf , int * actual_result_len , int result_is_int , LO_ARG * args , int nargs )
1146
1146
{
1147
1147
char id ,
1148
1148
c ,
@@ -1289,7 +1289,7 @@ CC_send_function(ConnectionClass * self, int fnid, void *result_buf, int *actual
1289
1289
1290
1290
1291
1291
char
1292
- CC_send_settings (ConnectionClass * self )
1292
+ CC_send_settings (ConnectionClass * self )
1293
1293
{
1294
1294
/* char ini_query[MAX_MESSAGE_LEN]; */
1295
1295
ConnInfo * ci = & (self -> connInfo );
@@ -1393,7 +1393,7 @@ CC_send_settings(ConnectionClass * self)
1393
1393
will go away and the define 'PG_TYPE_LO' will be updated.
1394
1394
*/
1395
1395
void
1396
- CC_lookup_lo (ConnectionClass * self )
1396
+ CC_lookup_lo (ConnectionClass * self )
1397
1397
{
1398
1398
HSTMT hstmt ;
1399
1399
StatementClass * stmt ;
@@ -1442,7 +1442,7 @@ CC_lookup_lo(ConnectionClass * self)
1442
1442
h-inoue 01-2-2001
1443
1443
*/
1444
1444
void
1445
- CC_initialize_pg_version (ConnectionClass * self )
1445
+ CC_initialize_pg_version (ConnectionClass * self )
1446
1446
{
1447
1447
strcpy (self -> pg_version , self -> connInfo .protocol );
1448
1448
self -> pg_version_number = (float ) 6.4 ;
@@ -1455,7 +1455,7 @@ CC_initialize_pg_version(ConnectionClass * self)
1455
1455
DJP - 25-1-2001
1456
1456
*/
1457
1457
void
1458
- CC_lookup_pg_version (ConnectionClass * self )
1458
+ CC_lookup_pg_version (ConnectionClass * self )
1459
1459
{
1460
1460
HSTMT hstmt ;
1461
1461
StatementClass * stmt ;
@@ -1517,7 +1517,7 @@ CC_lookup_pg_version(ConnectionClass * self)
1517
1517
}
1518
1518
1519
1519
void
1520
- CC_log_error (char * func , char * desc , ConnectionClass * self )
1520
+ CC_log_error (char * func , char * desc , ConnectionClass * self )
1521
1521
{
1522
1522
#ifdef PRN_NULLCHECK
1523
1523
#define nullcheck (a ) (a ? a : "(NULL)")
0 commit comments