Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fc564686
Commit
fc564686
authored
20 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Fix contrib/dbase to compile under Win32. Laurent Ballester
parent
296fb57b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/dbase/dbf.h
+3
-0
3 additions, 0 deletions
contrib/dbase/dbf.h
contrib/dbase/dbf2pg.c
+3
-3
3 additions, 3 deletions
contrib/dbase/dbf2pg.c
with
6 additions
and
3 deletions
contrib/dbase/dbf.h
+
3
−
0
View file @
fc564686
...
...
@@ -8,6 +8,9 @@
#ifndef _DBF_H
#define _DBF_H
#ifdef _WIN32
#include
<gmon.h>
/* we need it to define u_char type */
#endif
#include
<sys/types.h>
/**********************************************************************
...
...
This diff is collapsed.
Click to expand it.
contrib/dbase/dbf2pg.c
+
3
−
3
View file @
fc564686
...
...
@@ -57,7 +57,7 @@ void do_create(PGconn *, char *, dbhead *);
void
do_inserts
(
PGconn
*
,
char
*
,
dbhead
*
);
int
check_table
(
PGconn
*
,
char
*
);
char
*
Escape
(
char
*
);
char
*
Escape
_db
(
char
*
);
#ifdef HAVE_ICONV_H
char
*
convert_charset
(
char
*
string
);
...
...
@@ -110,7 +110,7 @@ strtolower(char *string)
/* FIXME: should this check for overflow? */
char
*
Escape
(
char
*
string
)
Escape
_db
(
char
*
string
)
{
char
*
foo
,
*
bar
;
...
...
@@ -466,7 +466,7 @@ do_inserts(PGconn *conn, char *table, dbhead * dbh)
if
(
charset_from
)
foo
=
convert_charset
(
foo
);
#endif
foo
=
Escape
(
foo
);
foo
=
Escape
_db
(
foo
);
/* handle the date first - liuk */
if
(
fields
[
h
].
db_type
==
'D'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment