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
4b06f6f9
Commit
4b06f6f9
authored
Sep 21, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I found the following useful - just a way of using PQgetisnull from
libpq++. Patrick Welche
parent
79434a3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
src/interfaces/libpq++/pgdatabase.cc
src/interfaces/libpq++/pgdatabase.cc
+14
-1
src/interfaces/libpq++/pgdatabase.h
src/interfaces/libpq++/pgdatabase.h
+3
-1
No files found.
src/interfaces/libpq++/pgdatabase.cc
View file @
4b06f6f9
...
...
@@ -10,7 +10,7 @@
* Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.
3 1999/06/05 18:05:17 tgl
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.
4 1999/09/21 21:19:31 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -115,6 +115,18 @@ return PQgetvalue(pgResult, tup_num, FieldNum(field_name));
}
int
PgDatabase
::
GetIsNull
(
int
tup_num
,
int
field_num
)
{
return
PQgetisnull
(
pgResult
,
tup_num
,
field_num
);
}
int
PgDatabase
::
GetIsNull
(
int
tup_num
,
const
char
*
field_name
)
{
return
PQgetisnull
(
pgResult
,
tup_num
,
FieldNum
(
field_name
));
}
int
PgDatabase
::
GetLength
(
int
tup_num
,
int
field_num
)
{
return
PQgetlength
(
pgResult
,
tup_num
,
field_num
);
...
...
@@ -126,6 +138,7 @@ int PgDatabase::GetLength(int tup_num, const char* field_name)
return
PQgetlength
(
pgResult
,
tup_num
,
FieldNum
(
field_name
));
}
int
PgDatabase
::
GetLine
(
char
*
string
,
int
length
)
{
return
PQgetline
(
pgConn
,
string
,
length
);
...
...
src/interfaces/libpq++/pgdatabase.h
View file @
4b06f6f9
...
...
@@ -13,7 +13,7 @@
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pgdatabase.h,v 1.
2 1999/05/23 01:04:0
1 momjian Exp $
* $Id: pgdatabase.h,v 1.
3 1999/09/21 21:19:3
1 momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -48,6 +48,8 @@ public:
short
FieldSize
(
const
char
*
field_name
);
const
char
*
GetValue
(
int
tup_num
,
int
field_num
);
const
char
*
GetValue
(
int
tup_num
,
const
char
*
field_name
);
int
GetIsNull
(
int
tup_num
,
int
field_num
);
int
GetIsNull
(
int
tup_num
,
const
char
*
field_name
);
int
GetLength
(
int
tup_num
,
int
field_num
);
int
GetLength
(
int
tup_num
,
const
char
*
field_name
);
void
DisplayTuples
(
FILE
*
out
=
0
,
int
fillAlign
=
1
,
...
...
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