Skip to content

Commit

Permalink
Documented sql_error::sqlstate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtv committed Jan 16, 2019
1 parent a84b9c1 commit 26c53a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/pqxx/except.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* DO NOT INCLUDE THIS FILE DIRECTLY; include pqxx/except instead.
*
* Copyright (c) 2003-2018, Jeroen T. Vermeulen.
* Copyright (c) 2003-2019, Jeroen T. Vermeulen.
*
* See COPYING for copyright license. If you did not receive a file called
* COPYING with this source code, please notify the distributor of this mistake,
Expand Down Expand Up @@ -143,6 +143,8 @@ public:

/// The query whose execution triggered the exception
PQXX_PURE const std::string &query() const noexcept; //[t56]

/// SQLSTATE error code if known, or empty string otherwise.
PQXX_PURE const std::string &sqlstate() const noexcept;
};

Expand Down

0 comments on commit 26c53a6

Please sign in to comment.