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
14f29f64
Commit
14f29f64
authored
May 20, 2009
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unsigned/signed mismatches.
parent
11a497f9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/compatlib/informix.c
+2
-2
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/execute.c
+2
-2
src/interfaces/ecpg/pgtypeslib/datetime.c
src/interfaces/ecpg/pgtypeslib/datetime.c
+2
-2
src/interfaces/ecpg/pgtypeslib/dt_common.c
src/interfaces/ecpg/pgtypeslib/dt_common.c
+2
-2
No files found.
src/interfaces/ecpg/compatlib/informix.c
View file @
14f29f64
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.5
7 2009/01/15 11:52:54 petere
Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/compatlib/informix.c,v 1.5
8 2009/05/20 16:49:23 meskes
Exp $ */
#define POSTGRES_ECPG_INTERNAL
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
#include "postgres_fe.h"
...
@@ -151,7 +151,7 @@ static char *
...
@@ -151,7 +151,7 @@ static char *
ecpg_strndup
(
const
char
*
str
,
size_t
len
)
ecpg_strndup
(
const
char
*
str
,
size_t
len
)
{
{
int
real_len
=
strlen
(
str
);
int
real_len
=
strlen
(
str
);
int
use_len
=
(
real_len
>
len
)
?
len
:
real_len
;
int
use_len
=
(
real_len
>
len
)
?
(
int
)
len
:
real_len
;
char
*
new
=
malloc
(
use_len
+
1
);
char
*
new
=
malloc
(
use_len
+
1
);
...
...
src/interfaces/ecpg/ecpglib/execute.c
View file @
14f29f64
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.8
3 2009/05/20 16:13:18
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.8
4 2009/05/20 16:49:23
meskes Exp $ */
/*
/*
* The aim is to get a simpler inteface to the database routines.
* The aim is to get a simpler inteface to the database routines.
...
@@ -759,7 +759,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
...
@@ -759,7 +759,7 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
case
ECPGt_unsigned_char
:
case
ECPGt_unsigned_char
:
{
{
/* set slen to string length if type is char * */
/* set slen to string length if type is char * */
int
slen
=
(
var
->
varcharsize
==
0
)
?
strlen
((
char
*
)
var
->
value
)
:
var
->
varcharsize
;
int
slen
=
(
var
->
varcharsize
==
0
)
?
strlen
((
char
*
)
var
->
value
)
:
(
unsigned
int
)
var
->
varcharsize
;
if
(
!
(
newcopy
=
ecpg_alloc
(
slen
+
1
,
lineno
)))
if
(
!
(
newcopy
=
ecpg_alloc
(
slen
+
1
,
lineno
)))
return
false
;
return
false
;
...
...
src/interfaces/ecpg/pgtypeslib/datetime.c
View file @
14f29f64
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.3
6 2009/05/20 16:13:18
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/datetime.c,v 1.3
7 2009/05/20 16:49:23
meskes Exp $ */
#include "postgres_fe.h"
#include "postgres_fe.h"
...
@@ -347,7 +347,7 @@ PGTYPESdate_defmt_asc(date * d, char *fmt, char *str)
...
@@ -347,7 +347,7 @@ PGTYPESdate_defmt_asc(date * d, char *fmt, char *str)
char
*
fmt_ystart
,
char
*
fmt_ystart
,
*
fmt_mstart
,
*
fmt_mstart
,
*
fmt_dstart
;
*
fmt_dstart
;
int
i
;
unsigned
int
i
;
int
reading_digit
;
int
reading_digit
;
int
token_count
;
int
token_count
;
char
*
str_copy
;
char
*
str_copy
;
...
...
src/interfaces/ecpg/pgtypeslib/dt_common.c
View file @
14f29f64
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.
49 2009/05/20 16:13:18
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/dt_common.c,v 1.
50 2009/05/20 16:49:23
meskes Exp $ */
#include "postgres_fe.h"
#include "postgres_fe.h"
...
@@ -2583,7 +2583,7 @@ PGTYPEStimestamp_defmt_scan(char **str, char *fmt, timestamp * d,
...
@@ -2583,7 +2583,7 @@ PGTYPEStimestamp_defmt_scan(char **str, char *fmt, timestamp * d,
*
pfmt
,
*
pfmt
,
*
tmp
;
*
tmp
;
int
err
=
1
;
int
err
=
1
;
int
j
;
unsigned
int
j
;
struct
tm
tm
;
struct
tm
tm
;
pfmt
=
fmt
;
pfmt
=
fmt
;
...
...
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