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
8bac4ca8
Commit
8bac4ca8
authored
Jul 13, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename libpq to use more normal field names.
parent
6ce9c76b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+9
-9
src/interfaces/libpq/libpq-fe.h
src/interfaces/libpq/libpq-fe.h
+2
-2
No files found.
src/interfaces/libpq/fe-exec.c
View file @
8bac4ca8
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.5
7 1998/07/13 00:01:44
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.5
8 1998/07/13 02:41:58
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -498,21 +498,21 @@ getRowDescriptions(PGconn *conn)
{
char
typName
[
MAX_MESSAGE_LEN
];
int
adtid
;
int
adtsize
;
int
a
dt
mod
=
-
1
;
int
typlen
;
int
a
tttyp
mod
=
-
1
;
if
(
pqGets
(
typName
,
MAX_MESSAGE_LEN
,
conn
)
||
pqGetInt
(
&
adtid
,
4
,
conn
)
||
pqGetInt
(
&
adtsize
,
2
,
conn
)
||
pqGetInt
(
&
a
dt
mod
,
4
,
conn
))
pqGetInt
(
&
typlen
,
2
,
conn
)
||
pqGetInt
(
&
a
tttyp
mod
,
4
,
conn
))
{
PQclear
(
result
);
return
EOF
;
}
result
->
attDescs
[
i
].
name
=
strdup
(
typName
);
result
->
attDescs
[
i
].
adtid
=
adtid
;
result
->
attDescs
[
i
].
adtsize
=
(
short
)
adtsize
;
result
->
attDescs
[
i
].
a
dtmod
=
adt
mod
;
result
->
attDescs
[
i
].
typlen
=
(
short
)
typlen
;
result
->
attDescs
[
i
].
a
tttypmod
=
atttyp
mod
;
}
/* Success! */
...
...
@@ -1294,7 +1294,7 @@ PQfsize(PGresult *res, int field_num)
return
0
;
}
if
(
res
->
attDescs
)
return
res
->
attDescs
[
field_num
].
adtsize
;
return
res
->
attDescs
[
field_num
].
typlen
;
else
return
0
;
}
...
...
@@ -1316,7 +1316,7 @@ PQfmod(PGresult *res, int field_num)
return
0
;
}
if
(
res
->
attDescs
)
return
res
->
attDescs
[
field_num
].
a
dt
mod
;
return
res
->
attDescs
[
field_num
].
a
tttyp
mod
;
else
return
0
;
}
...
...
src/interfaces/libpq/libpq-fe.h
View file @
8bac4ca8
...
...
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: libpq-fe.h,v 1.3
2 1998/07/13 00:01:45
momjian Exp $
* $Id: libpq-fe.h,v 1.3
3 1998/07/13 02:41:59
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -78,7 +78,7 @@ extern "C"
char
*
name
;
/* type name */
Oid
adtid
;
/* type id */
short
adtsize
;
/* type size */
int
a
dtmod
;
/* type-specific modifier info */
int
a
tttypmod
;
/* type-specific modifier info */
}
PGresAttDesc
;
/* use char* for Attribute values,
...
...
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