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
b0546a25
Commit
b0546a25
authored
May 09, 2001
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix libpq++'s FieldSize to return int, not short.
parent
9668b948
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
doc/src/sgml/libpq++.sgml
doc/src/sgml/libpq++.sgml
+3
-3
src/interfaces/libpq++/TODO
src/interfaces/libpq++/TODO
+0
-1
src/interfaces/libpq++/pgdatabase.cc
src/interfaces/libpq++/pgdatabase.cc
+3
-3
src/interfaces/libpq++/pgdatabase.h
src/interfaces/libpq++/pgdatabase.h
+3
-3
No files found.
doc/src/sgml/libpq++.sgml
View file @
b0546a25
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.
29 2001/05/09 17:29:09
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.
30 2001/05/09 17:46:11
momjian Exp $
-->
<chapter id="libpqplusplus">
...
...
@@ -430,7 +430,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.29 2001/05/09 17:29:
Returns the size in bytes of the field associated with the given
field index. Field indices start at 0.
<synopsis>
shor
t PgDatabase::FieldSize(int field_num) const
in
t PgDatabase::FieldSize(int field_num) const
</synopsis>
Returns the space allocated for this field in a database tuple given
the field number. In other words the size of the server's binary
...
...
@@ -444,7 +444,7 @@ $Header: /cvsroot/pgsql/doc/src/sgml/Attic/libpq++.sgml,v 1.29 2001/05/09 17:29:
Returns the size in bytes of the field associated with the given
field index. Field indices start at 0.
<synopsis>
shor
t PgDatabase::FieldSize(const char *field_name) const
in
t PgDatabase::FieldSize(const char *field_name) const
</synopsis>
Returns the space allocated for this field in a database tuple given
the field name. In other words the size of the server's binary
...
...
src/interfaces/libpq++/TODO
View file @
b0546a25
* Implement exceptions
* Many other things I have yet to discover
* fix getLength to return an int and not a short
src/interfaces/libpq++/pgdatabase.cc
View file @
b0546a25
...
...
@@ -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.1
0 2001/05/09 17:29:10
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.1
1 2001/05/09 17:46:11
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -106,13 +106,13 @@ return PQftype(pgResult, FieldNum(field_name));
}
shor
t
PgDatabase
::
FieldSize
(
int
field_num
)
const
in
t
PgDatabase
::
FieldSize
(
int
field_num
)
const
{
return
PQfsize
(
pgResult
,
field_num
);
}
shor
t
PgDatabase
::
FieldSize
(
const
char
*
field_name
)
const
in
t
PgDatabase
::
FieldSize
(
const
char
*
field_name
)
const
{
return
PQfsize
(
pgResult
,
FieldNum
(
field_name
));
}
...
...
src/interfaces/libpq++/pgdatabase.h
View file @
b0546a25
...
...
@@ -14,7 +14,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: pgdatabase.h,v 1.1
0 2001/05/09 17:29:10
momjian Exp $
* $Id: pgdatabase.h,v 1.1
1 2001/05/09 17:46:11
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -51,8 +51,8 @@ public:
int
FieldNum
(
const
char
*
field_name
)
const
;
Oid
FieldType
(
int
field_num
)
const
;
Oid
FieldType
(
const
char
*
field_name
)
const
;
shor
t
FieldSize
(
int
field_num
)
const
;
shor
t
FieldSize
(
const
char
*
field_name
)
const
;
in
t
FieldSize
(
int
field_num
)
const
;
in
t
FieldSize
(
const
char
*
field_name
)
const
;
const
char
*
GetValue
(
size_type
tup_num
,
int
field_num
)
const
;
const
char
*
GetValue
(
size_type
tup_num
,
const
char
*
field_name
)
const
;
bool
GetIsNull
(
size_type
tup_num
,
int
field_num
)
const
;
...
...
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