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
68333364
Commit
68333364
authored
May 14, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass atttypmod to the frontend.
parent
fdd9a344
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
src/backend/access/common/printtup.c
src/backend/access/common/printtup.c
+3
-2
src/backend/tcop/dest.c
src/backend/tcop/dest.c
+2
-1
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+3
-6
No files found.
src/backend/access/common/printtup.c
View file @
68333364
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.2
7 1998/02/26 04:29:20
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/access/common/printtup.c,v 1.2
8 1998/05/14 17:18:12
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -141,7 +141,7 @@ printatt(unsigned attributeId,
...
@@ -141,7 +141,7 @@ printatt(unsigned attributeId,
AttributeTupleForm
attributeP
,
AttributeTupleForm
attributeP
,
char
*
value
)
char
*
value
)
{
{
printf
(
"
\t
%2d: %s%s%s%s
\t
(typeid = %u, len = %d, byval = %c)
\n
"
,
printf
(
"
\t
%2d: %s%s%s%s
\t
(typeid = %u, len = %d,
typmod = %d,
byval = %c)
\n
"
,
attributeId
,
attributeId
,
attributeP
->
attname
.
data
,
attributeP
->
attname
.
data
,
value
!=
NULL
?
" =
\"
"
:
""
,
value
!=
NULL
?
" =
\"
"
:
""
,
...
@@ -149,6 +149,7 @@ printatt(unsigned attributeId,
...
@@ -149,6 +149,7 @@ printatt(unsigned attributeId,
value
!=
NULL
?
"
\"
"
:
""
,
value
!=
NULL
?
"
\"
"
:
""
,
(
unsigned
int
)
(
attributeP
->
atttypid
),
(
unsigned
int
)
(
attributeP
->
atttypid
),
attributeP
->
attlen
,
attributeP
->
attlen
,
attributeP
->
atttypmod
,
attributeP
->
attbyval
?
't'
:
'f'
);
attributeP
->
attbyval
?
't'
:
'f'
);
}
}
...
...
src/backend/tcop/dest.c
View file @
68333364
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.1
8 1998/05/06 23:49:59
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/tcop/dest.c,v 1.1
9 1998/05/14 17:18:13
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -288,6 +288,7 @@ BeginCommand(char *pname,
...
@@ -288,6 +288,7 @@ BeginCommand(char *pname,
* oops.. */
* oops.. */
pq_putint
((
int
)
attrs
[
i
]
->
atttypid
,
sizeof
(
attrs
[
i
]
->
atttypid
));
pq_putint
((
int
)
attrs
[
i
]
->
atttypid
,
sizeof
(
attrs
[
i
]
->
atttypid
));
pq_putint
(
attrs
[
i
]
->
attlen
,
sizeof
(
attrs
[
i
]
->
attlen
));
pq_putint
(
attrs
[
i
]
->
attlen
,
sizeof
(
attrs
[
i
]
->
attlen
));
pq_putint
(
attrs
[
i
]
->
atttypmod
,
sizeof
(
attrs
[
i
]
->
atttypmod
));
}
}
}
}
break
;
break
;
...
...
src/interfaces/libpq/fe-exec.c
View file @
68333364
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.5
1 1998/05/06 23:53:38
momjian Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.5
2 1998/05/14 17:18:14
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -492,11 +492,8 @@ getRowDescriptions(PGconn *conn)
...
@@ -492,11 +492,8 @@ getRowDescriptions(PGconn *conn)
if
(
pqGets
(
typName
,
MAX_MESSAGE_LEN
,
conn
)
||
if
(
pqGets
(
typName
,
MAX_MESSAGE_LEN
,
conn
)
||
pqGetInt
(
&
adtid
,
4
,
conn
)
||
pqGetInt
(
&
adtid
,
4
,
conn
)
||
pqGetInt
(
&
adtsize
,
2
,
conn
)
pqGetInt
(
&
adtsize
,
2
,
conn
)
||
#if 0 /* backend support not there yet */
pqGetInt
(
&
adtmod
,
2
,
conn
))
|| pqGetInt(&adtmod, 2, conn)
#endif
)
{
{
PQclear
(
result
);
PQclear
(
result
);
return
EOF
;
return
EOF
;
...
...
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