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
a50f2fd7
Commit
a50f2fd7
authored
Mar 14, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Repair unintentional damage to MULTIBYTE code.
parent
34235a29
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-exec.c
+6
-1
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-print.c
+2
-2
src/interfaces/libpq/libpq-int.h
src/interfaces/libpq/libpq-int.h
+7
-4
No files found.
src/interfaces/libpq/fe-exec.c
View file @
a50f2fd7
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.9
2 2000/03/11 03:08:36
tgl Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.9
3 2000/03/14 23:59:23
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -153,8 +153,11 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
...
@@ -153,8 +153,11 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
if
(
conn
)
if
(
conn
)
{
{
/* copy connection data we might need for operations on PGresult */
result
->
noticeHook
=
conn
->
noticeHook
;
result
->
noticeHook
=
conn
->
noticeHook
;
result
->
noticeArg
=
conn
->
noticeArg
;
result
->
noticeArg
=
conn
->
noticeArg
;
result
->
client_encoding
=
conn
->
client_encoding
;
/* consider copying conn's errorMessage */
/* consider copying conn's errorMessage */
switch
(
status
)
switch
(
status
)
{
{
...
@@ -172,8 +175,10 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
...
@@ -172,8 +175,10 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
}
}
else
else
{
{
/* defaults... */
result
->
noticeHook
=
NULL
;
result
->
noticeHook
=
NULL
;
result
->
noticeArg
=
NULL
;
result
->
noticeArg
=
NULL
;
result
->
client_encoding
=
0
;
/* should be SQL_ASCII */
}
}
return
result
;
return
result
;
...
...
src/interfaces/libpq/fe-print.c
View file @
a50f2fd7
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* didn't really belong there.
* didn't really belong there.
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.3
5 2000/02/07 23:10:11 petere
Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.3
6 2000/03/14 23:59:23 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -347,7 +347,7 @@ do_field(const PQprintOpt *po, const PGresult *res,
...
@@ -347,7 +347,7 @@ do_field(const PQprintOpt *po, const PGresult *res,
char
ch
=
'0'
;
char
ch
=
'0'
;
#ifdef MULTIBYTE
#ifdef MULTIBYTE
for
(
p
=
pval
;
*
p
;
p
+=
PQmblen
(
p
,
PQclientEncoding
(
res
->
conn
)
))
for
(
p
=
pval
;
*
p
;
p
+=
PQmblen
(
p
,
res
->
client_encoding
))
#else
#else
for
(
p
=
pval
;
*
p
;
p
++
)
for
(
p
=
pval
;
*
p
;
p
++
)
#endif
#endif
...
...
src/interfaces/libpq/libpq-int.h
View file @
a50f2fd7
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $Id: libpq-int.h,v 1.2
0 2000/03/11 03:08:37
tgl Exp $
* $Id: libpq-int.h,v 1.2
1 2000/03/14 23:59:23
tgl Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -130,11 +130,14 @@ struct pg_result
...
@@ -130,11 +130,14 @@ struct pg_result
*/
*/
PGconn
*
xconn
;
/* connection we did the query on, if any */
PGconn
*
xconn
;
/* connection we did the query on, if any */
/* Callback procedure for notice/error message processing
/*
* (copied from originating PGconn).
* These fields are copied from the originating PGconn, so that
* operations on the PGresult don't have to reference the PGconn.
*/
*/
PQnoticeProcessor
noticeHook
;
PQnoticeProcessor
noticeHook
;
/* notice/error message processor */
void
*
noticeArg
;
void
*
noticeArg
;
int
client_encoding
;
/* encoding id */
char
*
errMsg
;
/* error message, or NULL if no error */
char
*
errMsg
;
/* error message, or NULL if no error */
...
...
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