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
a0551e8a
Commit
a0551e8a
authored
Apr 25, 2000
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make c++ examples return 0 from main().
parent
02ee0418
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
1 deletion
+8
-1
src/interfaces/libpq++/examples/testlibpq1.cc
src/interfaces/libpq++/examples/testlibpq1.cc
+1
-0
src/interfaces/libpq++/examples/testlibpq2.cc
src/interfaces/libpq++/examples/testlibpq2.cc
+1
-0
src/interfaces/libpq++/examples/testlibpq3.cc
src/interfaces/libpq++/examples/testlibpq3.cc
+1
-0
src/interfaces/libpq++/examples/testlibpq4.cc
src/interfaces/libpq++/examples/testlibpq4.cc
+1
-0
src/interfaces/libpq++/examples/testlibpq5.cc
src/interfaces/libpq++/examples/testlibpq5.cc
+1
-0
src/interfaces/libpq++/examples/testlibpq6.cc
src/interfaces/libpq++/examples/testlibpq6.cc
+1
-0
src/interfaces/libpq++/examples/testlo.cc
src/interfaces/libpq++/examples/testlo.cc
+2
-1
No files found.
src/interfaces/libpq++/examples/testlibpq1.cc
View file @
a0551e8a
...
@@ -62,6 +62,7 @@ int main()
...
@@ -62,6 +62,7 @@ int main()
// End the transaction
// End the transaction
data
.
Exec
(
"END"
);
data
.
Exec
(
"END"
);
return
0
;
}
}
src/interfaces/libpq++/examples/testlibpq2.cc
View file @
a0551e8a
...
@@ -53,4 +53,5 @@ int main()
...
@@ -53,4 +53,5 @@ int main()
// close the portal
// close the portal
data
.
Exec
(
"CLOSE myportal"
);
data
.
Exec
(
"CLOSE myportal"
);
return
0
;
}
}
src/interfaces/libpq++/examples/testlibpq3.cc
View file @
a0551e8a
...
@@ -53,4 +53,5 @@ int main()
...
@@ -53,4 +53,5 @@ int main()
cout
<<
setiosflags
(
ios
::
right
)
<<
setw
(
15
)
<<
cData
.
GetValue
(
i
,
j
);
cout
<<
setiosflags
(
ios
::
right
)
<<
setw
(
15
)
<<
cData
.
GetValue
(
i
,
j
);
cout
<<
endl
;
cout
<<
endl
;
}
}
return
0
;
}
}
src/interfaces/libpq++/examples/testlibpq4.cc
View file @
a0551e8a
...
@@ -55,4 +55,5 @@ main()
...
@@ -55,4 +55,5 @@ main()
break
;
break
;
}
}
}
}
return
0
;
}
}
src/interfaces/libpq++/examples/testlibpq5.cc
View file @
a0551e8a
...
@@ -99,4 +99,5 @@ main()
...
@@ -99,4 +99,5 @@ main()
// Deallocate memory allocated for the Polygon structure
// Deallocate memory allocated for the Polygon structure
free
(
pval
);
free
(
pval
);
}
}
return
0
;
}
}
src/interfaces/libpq++/examples/testlibpq6.cc
View file @
a0551e8a
...
@@ -56,4 +56,5 @@ main()
...
@@ -56,4 +56,5 @@ main()
// Drop the test table
// Drop the test table
data
.
Exec
(
"DROP TABLE foo"
);
data
.
Exec
(
"DROP TABLE foo"
);
return
0
;
}
}
src/interfaces/libpq++/examples/testlo.cc
View file @
a0551e8a
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.
6 2000/04/22 22:15:48 tgl
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/examples/Attic/testlo.cc,v 1.
7 2000/04/25 21:00:29 momjian
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -46,4 +46,5 @@ int main(int argc, char **argv)
...
@@ -46,4 +46,5 @@ int main(int argc, char **argv)
cout
<<
"Exporting large object to file
\"
"
<<
out_filename
<<
"
\"
..."
<<
endl
;
cout
<<
"Exporting large object to file
\"
"
<<
out_filename
<<
"
\"
..."
<<
endl
;
object
.
Export
(
out_filename
);
object
.
Export
(
out_filename
);
object
.
Exec
(
"END"
);
// WHY DOES IT CORE DUMP HERE ???
object
.
Exec
(
"END"
);
// WHY DOES IT CORE DUMP HERE ???
return
0
;
}
}
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