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
eabd1b2e
Commit
eabd1b2e
authored
May 08, 2008
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have psql output tab as the proper number of spaces, rather than \x09.
parent
5adf98ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
src/bin/psql/mbprint.c
src/bin/psql/mbprint.c
+9
-1
src/test/regress/expected/prepare.out
src/test/regress/expected/prepare.out
+9
-7
No files found.
src/bin/psql/mbprint.c
View file @
eabd1b2e
...
...
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.3
1 2008/05/08 17:04:2
6 momjian Exp $
* $PostgreSQL: pgsql/src/bin/psql/mbprint.c,v 1.3
2 2008/05/08 19:11:3
6 momjian Exp $
*
* XXX this file does not really belong in psql/. Perhaps move to libpq?
* It also seems that the mbvalidate function is redundant with existing
...
...
@@ -321,6 +321,14 @@ pg_wcsformat(unsigned char *pwcs, size_t len, int encoding,
linewidth
+=
2
;
ptr
+=
2
;
}
else
if
(
*
pwcs
==
'\t'
)
/* Tab */
{
do
{
*
ptr
++
=
' '
;
linewidth
++
;
}
while
(
linewidth
%
8
!=
0
);
}
else
if
(
w
<
0
)
/* Other control char */
{
sprintf
((
char
*
)
ptr
,
"
\\
x%02X"
,
*
pwcs
);
...
...
src/test/regress/expected/prepare.out
View file @
eabd1b2e
...
...
@@ -155,15 +155,17 @@ SELECT name, statement, parameter_types FROM pg_prepared_statements
name | statement | parameter_types
------+-----------------------------------------------------------------+--------------------------------------------------------
q2 | PREPARE q2(text) AS | {text}
:
\x09SELECT datname, datistemplate, datallowconn
:
\x09FROM pg_database WHERE datname = $1;
:
SELECT datname, datistemplate, datallowconn
:
FROM pg_database WHERE datname = $1;
q3 | PREPARE q3(text, int, float, boolean, oid, smallint) AS | {text,integer,"double precision",boolean,oid,smallint}
: \x09SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 OR
: \x09ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::int)
: \x09ORDER BY unique1;
: SELECT * FROM tenk1 WHERE string4 = $1 AND (four = $2 O
; R
: ten = $3::bigint OR true = $4 OR oid = $5 OR odd = $6::
; int)
: ORDER BY unique1;
q5 | PREPARE q5(int, text) AS | {integer,text}
:
\x09SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2
:
\x09ORDER BY unique1;
:
SELECT * FROM tenk1 WHERE unique1 = $1 OR stringu1 = $2
:
ORDER BY unique1;
q6 | PREPARE q6 AS | {integer,name}
: SELECT * FROM tenk1 WHERE unique1 = $1 AND stringu1 = $2;
q7 | PREPARE q7(unknown) AS | {path}
...
...
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