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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6e7baa3) | patch
Add psql variables to track success/failure of SQL queries.
2017年9月12日 23:27:48 +0000 (19:27 -0400)
2017年9月12日 23:27:48 +0000 (19:27 -0400)
commit 69835bc8988812c960f4ed5aeee86b62ac73602a
Add psql variables to track success/failure of SQL queries.

This patch adds ERROR, SQLSTATE, and ROW_COUNT, which are updated after
every query, as well as LAST_ERROR_MESSAGE and LAST_ERROR_SQLSTATE,
which are updated only when a query fails. The expected usage of these
is for scripting.

Fabien Coelho, reviewed by Pavel Stehule

Discussion: https://postgr.es/m/alpine.DEB.2.20.1704042158020.12290@lancre
doc/src/sgml/ref/psql-ref.sgml diff | blob | blame | history
src/bin/psql/common.c diff | blob | blame | history
src/bin/psql/help.c diff | blob | blame | history
src/bin/psql/startup.c diff | blob | blame | history
src/test/regress/expected/psql.out diff | blob | blame | history
src/test/regress/sql/psql.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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