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
7ff8a180
Commit
7ff8a180
authored
Nov 02, 1999
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
d9e4966b
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
24 deletions
+21
-24
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/lib/Makefile.in
src/interfaces/ecpg/lib/Makefile.in
+2
-2
src/interfaces/ecpg/lib/ecpglib.c
src/interfaces/ecpg/lib/ecpglib.c
+1
-1
src/interfaces/ecpg/test/Makefile
src/interfaces/ecpg/test/Makefile
+7
-12
src/interfaces/ecpg/test/header_test.h
src/interfaces/ecpg/test/header_test.h
+5
-8
src/interfaces/ecpg/test/test1.pgc
src/interfaces/ecpg/test/test1.pgc
+1
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
7ff8a180
...
...
@@ -700,3 +700,8 @@ Fri Oct 29 21:36:25 CEST 1999
- Fixed bug that caused ecpg to not allow FOR UPDATE.
- Set ecpg version to 2.6.9
Mon Nov 1 11:22:06 CET 1999
- Print SQL error message to STDERR instead of STDOUT.
- Added a fourth test source.
- Set library version to 3.0.5.
src/interfaces/ecpg/lib/Makefile.in
View file @
7ff8a180
...
...
@@ -6,13 +6,13 @@
# Copyright (c) 1994, Regents of the University of California
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.
49 1999/10/13 11:38:35 momjian
Exp $
# $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/Makefile.in,v 1.
50 1999/11/02 12:11:53 meskes
Exp $
#
#-------------------------------------------------------------------------
NAME
=
ecpg
SO_MAJOR_VERSION
=
3
SO_MINOR_VERSION
=
0.
4
SO_MINOR_VERSION
=
0.
5
SRCDIR
=
@top_srcdir@
include
$(SRCDIR)/Makefile.global
...
...
src/interfaces/ecpg/lib/ecpglib.c
View file @
7ff8a180
...
...
@@ -1294,7 +1294,7 @@ void
sqlprint
(
void
)
{
sqlca
.
sqlerrm
.
sqlerrmc
[
sqlca
.
sqlerrm
.
sqlerrml
]
=
'\0'
;
printf
(
"sql error %s
\n
"
,
sqlca
.
sqlerrm
.
sqlerrmc
);
fprintf
(
stderr
,
"sql error %s
\n
"
,
sqlca
.
sqlerrm
.
sqlerrmc
);
}
static
bool
...
...
src/interfaces/ecpg/test/Makefile
View file @
7ff8a180
all
:
test1 test2 test3 perftest
all
:
test1 test2 test3
test4
perftest
LDFLAGS
=
-g
-I
/usr/local/pgsql/include
-L
/usr/local/pgsql/lib
-lecpg
-lpq
-lcrypt
test1
:
test1.c
test1.c
:
test1.pgc
/usr/local/pgsql/bin/ecpg
$?
.SUFFIXES
:
.pgc .c
test1
:
test1.c
test2
:
test2.c
test2.c
:
test2.pgc
/usr/local/pgsql/bin/ecpg
$?
test3
:
test3.c
test3.c
:
test3.pgc
/usr/local/pgsql/bin/ecpg
$?
test4
:
test4.c
perftest
:
perftest.c
perftest.c
:
perftest.pgc
.pgc.c
:
/usr/local/pgsql/bin/ecpg
$?
clean
:
-
/bin/rm test1 test2 test3 perftest
*
.c log
-
/bin/rm test1 test2 test3
test4
perftest
*
.c log
src/interfaces/ecpg/test/header_test.h
View file @
7ff8a180
exec
sql
include
sqlca
;
exec
sql
whenever
sqlerror
do
PrintAndStop
();
exec
sql
whenever
sqlwarning
do
warn
();
exec
sql
whenever
sqlerror
do
PrintAndStop
(
msg
);
exec
sql
whenever
sqlwarning
do
warn
();
void
PrintAndStop
(
void
)
void
PrintAndStop
(
msg
)
{
fprintf
(
stderr
,
"Error in statement '%s':
\n
"
,
msg
);
sqlprint
();
exit
(
-
1
);
}
void
warn
(
void
)
void
warn
(
void
)
{
fprintf
(
stderr
,
"Warning: At least one column was truncated
\n
"
);
}
src/interfaces/ecpg/test/test1.pgc
View file @
7ff8a180
exec sql
whenever sqlerror sqlprin
t;
exec sql
include header_tes
t;
exec sql include sqlca;
...
...
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