Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f91dd788
Commit
f91dd788
authored
Mar 18, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up minor compiler warnings.
parent
f945f461
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
31 deletions
+24
-31
src/backend/utils/adt/pg_locale.c
src/backend/utils/adt/pg_locale.c
+2
-2
src/include/utils/pg_locale.h
src/include/utils/pg_locale.h
+2
-2
src/interfaces/odbc/convert.c
src/interfaces/odbc/convert.c
+3
-4
src/interfaces/odbc/misc.c
src/interfaces/odbc/misc.c
+11
-17
src/interfaces/odbc/misc.h
src/interfaces/odbc/misc.h
+2
-2
src/interfaces/odbc/options.c
src/interfaces/odbc/options.c
+0
-1
src/interfaces/odbc/pgtypes.c
src/interfaces/odbc/pgtypes.c
+3
-2
src/interfaces/odbc/results.c
src/interfaces/odbc/results.c
+1
-1
No files found.
src/backend/utils/adt/pg_locale.c
View file @
f91dd788
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/* -----------------------------------------------------------------------
/* -----------------------------------------------------------------------
* pg_locale.c
* pg_locale.c
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.
2 2000/02/08 15:56:55 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_locale.c,v 1.
3 2000/03/18 18:57:14 tgl
Exp $
*
*
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
...
@@ -109,7 +109,7 @@ PGLC_setlocale( PG_LocaleCategories *lc )
...
@@ -109,7 +109,7 @@ PGLC_setlocale( PG_LocaleCategories *lc )
*------
*------
*/
*/
struct
lconv
*
struct
lconv
*
PGLC_localeconv
()
PGLC_localeconv
(
void
)
{
{
PG_LocaleCategories
lc
;
PG_LocaleCategories
lc
;
struct
lconv
*
lconv
;
struct
lconv
*
lconv
;
...
...
src/include/utils/pg_locale.h
View file @
f91dd788
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
/* -----------------------------------------------------------------------
/* -----------------------------------------------------------------------
* pg_locale.h
* pg_locale.h
*
*
* $Header: /cvsroot/pgsql/src/include/utils/pg_locale.h,v 1.
2 2000/02/08 15:57:01 momjian
Exp $
* $Header: /cvsroot/pgsql/src/include/utils/pg_locale.h,v 1.
3 2000/03/18 18:57:15 tgl
Exp $
*
*
*
*
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
* Portions Copyright (c) 1999-2000, PostgreSQL, Inc
...
@@ -43,7 +43,7 @@ extern PG_LocaleCategories *PGLC_setlocale( PG_LocaleCategories *lc );
...
@@ -43,7 +43,7 @@ extern PG_LocaleCategories *PGLC_setlocale( PG_LocaleCategories *lc );
* on current locale catogories setting - in contrast to standard localeconv().
* on current locale catogories setting - in contrast to standard localeconv().
*------
*------
*/
*/
extern
struct
lconv
*
PGLC_localeconv
();
extern
struct
lconv
*
PGLC_localeconv
(
void
);
#endif
/* USE_LOCALE */
#endif
/* USE_LOCALE */
...
...
src/interfaces/odbc/convert.c
View file @
f91dd788
...
@@ -1372,10 +1372,9 @@ int
...
@@ -1372,10 +1372,9 @@ int
convert_lo
(
StatementClass
*
stmt
,
void
*
value
,
Int2
fCType
,
PTR
rgbValue
,
convert_lo
(
StatementClass
*
stmt
,
void
*
value
,
Int2
fCType
,
PTR
rgbValue
,
SDWORD
cbValueMax
,
SDWORD
*
pcbValue
)
SDWORD
cbValueMax
,
SDWORD
*
pcbValue
)
{
{
Oid
oid
;
Oid
oid
;
int
retval
,
result
,
left
=
-
1
;
int
retval
,
result
,
left
=
-
1
;
int
bind_row
=
stmt
->
bind_row
;
BindInfoClass
*
bindInfo
=
NULL
;
BindInfoClass
*
bindInfo
=
NULL
;
/* If using SQLGetData, then current_col will be set */
/* If using SQLGetData, then current_col will be set */
...
...
src/interfaces/odbc/misc.c
View file @
f91dd788
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
*/
*/
#include <stdio.h>
#include <stdio.h>
#include <
varargs
.h>
#include <
stdarg
.h>
#include <string.h>
#include <string.h>
#include "psqlodbc.h"
#include "psqlodbc.h"
...
@@ -57,17 +57,14 @@ generate_filename(char* dirname,char* prefix,char* filename)
...
@@ -57,17 +57,14 @@ generate_filename(char* dirname,char* prefix,char* filename)
#ifdef MY_LOG
#ifdef MY_LOG
void
void
mylog
(
va_alist
)
mylog
(
char
*
fmt
,
...)
va_dcl
{
{
char
*
fmt
;
va_list
args
;
va_list
args
;
char
filebuf
[
80
];
char
filebuf
[
80
];
FILE
*
LOGFP
=
globals
.
mylogFP
;
FILE
*
LOGFP
=
globals
.
mylogFP
;
if
(
globals
.
debug
)
{
if
(
globals
.
debug
)
{
va_start
(
args
);
va_start
(
args
,
fmt
);
fmt
=
va_arg
(
args
,
char
*
);
if
(
!
LOGFP
)
{
if
(
!
LOGFP
)
{
generate_filename
(
MYLOGDIR
,
MYLOGFILE
,
filebuf
);
generate_filename
(
MYLOGDIR
,
MYLOGFILE
,
filebuf
);
...
@@ -91,18 +88,15 @@ char filebuf[80];
...
@@ -91,18 +88,15 @@ char filebuf[80];
#ifdef Q_LOG
#ifdef Q_LOG
void
qlog
(
va_alist
)
void
va_dcl
qlog
(
char
*
fmt
,
...)
{
{
char
*
fmt
;
va_list
args
;
va_list
args
;
char
filebuf
[
80
];
char
filebuf
[
80
];
FILE
*
LOGFP
=
globals
.
qlogFP
;
FILE
*
LOGFP
=
globals
.
qlogFP
;
if
(
globals
.
commlog
)
{
if
(
globals
.
commlog
)
{
va_start
(
args
);
va_start
(
args
,
fmt
);
fmt
=
va_arg
(
args
,
char
*
);
if
(
!
LOGFP
)
{
if
(
!
LOGFP
)
{
generate_filename
(
QLOGDIR
,
QLOGFILE
,
filebuf
);
generate_filename
(
QLOGDIR
,
QLOGFILE
,
filebuf
);
...
...
src/interfaces/odbc/misc.h
View file @
f91dd788
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
#else
#else
#define MYLOGDIR "c:"
#define MYLOGDIR "c:"
#endif
#endif
void
mylog
();
/* prototype */
extern
void
mylog
(
char
*
fmt
,
...);
#else
#else
#ifndef WIN32
#ifndef WIN32
#define mylog(args...)
/* GNU convention for variable arguments */
#define mylog(args...)
/* GNU convention for variable arguments */
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
#else
#else
#define QLOGDIR "c:"
#define QLOGDIR "c:"
#endif
#endif
void
qlog
();
/* prototype */
extern
void
qlog
(
char
*
fmt
,
...);
#else
#else
#ifndef WIN32
#ifndef WIN32
#define qlog(args...)
/* GNU convention for variable arguments */
#define qlog(args...)
/* GNU convention for variable arguments */
...
...
src/interfaces/odbc/options.c
View file @
f91dd788
...
@@ -474,7 +474,6 @@ RETCODE SQL_API SQLSetStmtOption(
...
@@ -474,7 +474,6 @@ RETCODE SQL_API SQLSetStmtOption(
{
{
static
char
*
func
=
"SQLSetStmtOption"
;
static
char
*
func
=
"SQLSetStmtOption"
;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
char
changed
=
FALSE
;
mylog
(
"%s: entering...
\n
"
,
func
);
mylog
(
"%s: entering...
\n
"
,
func
);
...
...
src/interfaces/odbc/pgtypes.c
View file @
f91dd788
...
@@ -177,6 +177,7 @@ Int4 pgType;
...
@@ -177,6 +177,7 @@ Int4 pgType;
break
;
break
;
default:
default:
pgType
=
0
;
/* ??? */
break
;
break
;
}
}
...
@@ -310,7 +311,7 @@ char *pgtype_to_name(StatementClass *stmt, Int4 type)
...
@@ -310,7 +311,7 @@ char *pgtype_to_name(StatementClass *stmt, Int4 type)
}
}
}
}
Int2
static
Int2
getNumericScale
(
StatementClass
*
stmt
,
Int4
type
,
int
col
)
getNumericScale
(
StatementClass
*
stmt
,
Int4
type
,
int
col
)
{
{
Int4
atttypmod
;
Int4
atttypmod
;
...
@@ -342,7 +343,7 @@ mylog("getNumericScale: type=%d, col=%d, unknown = %d\n", type,col);
...
@@ -342,7 +343,7 @@ mylog("getNumericScale: type=%d, col=%d, unknown = %d\n", type,col);
PG_NUMERIC_MAX_SCALE
);
PG_NUMERIC_MAX_SCALE
);
}
}
Int4
static
Int4
getNumericPrecision
(
StatementClass
*
stmt
,
Int4
type
,
int
col
)
getNumericPrecision
(
StatementClass
*
stmt
,
Int4
type
,
int
col
)
{
{
Int4
atttypmod
;
Int4
atttypmod
;
...
...
src/interfaces/odbc/results.c
View file @
f91dd788
...
@@ -608,7 +608,7 @@ QResultClass *res;
...
@@ -608,7 +608,7 @@ QResultClass *res;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
StatementClass
*
stmt
=
(
StatementClass
*
)
hstmt
;
int
num_cols
,
num_rows
;
int
num_cols
,
num_rows
;
Int4
field_type
;
Int4
field_type
;
void
*
value
;
void
*
value
=
NULL
;
int
result
;
int
result
;
char
get_bookmark
=
FALSE
;
char
get_bookmark
=
FALSE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment