git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 593763c) | patch
Allow psql multi-line column values to align in the proper columns
2006年2月10日 00:39:04 +0000 (00:39 +0000)
2006年2月10日 00:39:04 +0000 (00:39 +0000)
commit c01999a557b5c9ae200a95024539b823dbcfacd5
Allow psql multi-line column values to align in the proper columns

If the second output column value is 'a\nb', the 'b' should appear
in the second display column, rather than the first column as it
does now.

Change libpq's PQdsplen() to return more useful values.

> Note: this changes the PQdsplen function, it can now return zero or
> minus one which was not possible before. It doesn't appear anyone is
> actually using the functions other than psql but it is a change. The
> functions are not actually documentated anywhere so it's not like we're
> breaking a defined interface. The new semantics follow the Unicode
> standard.

BACKWARD COMPATIBLE CHANGE.

The only user-visible change I saw in the regression tests is that a
SELECT * on a table where all the columns have been dropped doesn't
return a blank line like before. This seems like a step forward.

Martijn van Oosterhout
src/backend/utils/mb/wchar.c diff | blob | blame | history
src/bin/psql/mbprint.c diff | blob | blame | history
src/bin/psql/mbprint.h diff | blob | blame | history
src/bin/psql/print.c diff | blob | blame | history
src/test/regress/expected/alter_table.out diff | blob | blame | history
src/test/regress/expected/prepare.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /