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
b53c8516
Commit
b53c8516
authored
Aug 08, 2002
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove #ifdef MULTIBYTE
parent
b084cc35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
src/backend/libpq/pqformat.c
src/backend/libpq/pqformat.c
+1
-15
No files found.
src/backend/libpq/pqformat.c
View file @
b53c8516
...
...
@@ -16,7 +16,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: pqformat.c,v 1.2
1 2002/06/20 20:29:28 momjian
Exp $
* $Id: pqformat.c,v 1.2
2 2002/08/08 06:32:26 ishii
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -52,9 +52,7 @@
#include "libpq/libpq.h"
#include "libpq/pqformat.h"
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
#endif
#ifdef HAVE_ENDIAN_H
#include <endian.h>
#endif
...
...
@@ -127,7 +125,6 @@ pq_sendbytes(StringInfo buf, const char *data, int datalen)
void
pq_sendcountedtext
(
StringInfo
buf
,
const
char
*
str
,
int
slen
)
{
#ifdef MULTIBYTE
char
*
p
;
p
=
(
char
*
)
pg_server_to_client
((
unsigned
char
*
)
str
,
slen
);
...
...
@@ -139,7 +136,6 @@ pq_sendcountedtext(StringInfo buf, const char *str, int slen)
pfree
(
p
);
return
;
}
#endif
pq_sendint
(
buf
,
slen
+
4
,
4
);
appendBinaryStringInfo
(
buf
,
str
,
slen
);
}
...
...
@@ -156,7 +152,6 @@ pq_sendstring(StringInfo buf, const char *str)
{
int
slen
=
strlen
(
str
);
#ifdef MULTIBYTE
char
*
p
;
p
=
(
char
*
)
pg_server_to_client
((
unsigned
char
*
)
str
,
slen
);
...
...
@@ -167,7 +162,6 @@ pq_sendstring(StringInfo buf, const char *str)
pfree
(
p
);
return
;
}
#endif
appendBinaryStringInfo
(
buf
,
str
,
slen
+
1
);
}
...
...
@@ -232,8 +226,6 @@ int
pq_puttextmessage
(
char
msgtype
,
const
char
*
str
)
{
int
slen
=
strlen
(
str
);
#ifdef MULTIBYTE
char
*
p
;
p
=
(
char
*
)
pg_server_to_client
((
unsigned
char
*
)
str
,
slen
);
...
...
@@ -244,7 +236,6 @@ pq_puttextmessage(char msgtype, const char *str)
pfree
(
p
);
return
result
;
}
#endif
return
pq_putmessage
(
msgtype
,
str
,
slen
+
1
);
}
...
...
@@ -305,14 +296,10 @@ int
pq_getstr
(
StringInfo
s
)
{
int
result
;
#ifdef MULTIBYTE
char
*
p
;
#endif
result
=
pq_getstring
(
s
);
#ifdef MULTIBYTE
p
=
(
char
*
)
pg_client_to_server
((
unsigned
char
*
)
s
->
data
,
s
->
len
);
if
(
p
!=
s
->
data
)
/* actual conversion has been done? */
{
...
...
@@ -322,7 +309,6 @@ pq_getstr(StringInfo s)
appendBinaryStringInfo
(
s
,
p
,
strlen
(
p
));
pfree
(
p
);
}
#endif
return
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