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
ed14f885
Commit
ed14f885
authored
Dec 23, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change logic slightly to avoid one unnecessary calculation. No big deal.
parent
c06331a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/backend/utils/adt/varchar.c
src/backend/utils/adt/varchar.c
+9
-5
No files found.
src/backend/utils/adt/varchar.c
View file @
ed14f885
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.1
3 1997/12/16 15:59:09
thomas Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.1
4 1997/12/23 19:24:43
thomas Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -49,12 +49,12 @@
* len is the length specified in () plus VARHDRSZ bytes. (XXX dummy is here
* because we pass typelem as the second argument for array_in.)
*/
char
*
char
*
bpcharin
(
char
*
s
,
int
dummy
,
int
typlen
)
{
char
*
result
,
*
r
;
int
len
=
typlen
-
VARHDRSZ
;
int
len
;
int
i
;
if
(
s
==
NULL
)
...
...
@@ -69,6 +69,10 @@ bpcharin(char *s, int dummy, int typlen)
len
=
strlen
(
s
);
typlen
=
len
+
VARHDRSZ
;
}
else
{
len
=
typlen
-
VARHDRSZ
;
}
if
(
len
>
4096
)
elog
(
WARN
,
"bpcharin: length of char() must be less than 4096"
);
...
...
@@ -90,7 +94,7 @@ bpcharin(char *s, int dummy, int typlen)
return
(
result
);
}
char
*
char
*
bpcharout
(
char
*
s
)
{
char
*
result
;
...
...
@@ -150,7 +154,7 @@ varcharin(char *s, int dummy, int typlen)
return
(
result
);
}
char
*
char
*
varcharout
(
char
*
s
)
{
char
*
result
;
...
...
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