Add a new error code ERRCODE_QUERY_CANCELED_HS for use with HS indicating a failure
authorAndres Freund <[email protected]>
Mon, 11 Jan 2010 16:43:01 +0000 (17:43 +0100)
committerAndres Freund <[email protected]>
Tue, 12 Jan 2010 04:40:28 +0000 (05:40 +0100)
that is more than a plain ERRCODE_QUERY_CANCELED - namely it should not be caught from
various places like savepoints and in PLs.

In want for a better name.

src/include/utils/errcodes.h

index 52c09caf71216f1945f45acfccef833e384674d1..279f0e4a0f54b72f373301e82e2ffd2ba2731613 100644 (file)
 /* Class 57 - Operator Intervention (class borrowed from DB2) */
 #define ERRCODE_OPERATOR_INTERVENTION      MAKE_SQLSTATE('5','7', '0','0','0')
 #define ERRCODE_QUERY_CANCELED             MAKE_SQLSTATE('5','7', '0','1','4')
+#define ERRCODE_QUERY_CANCELED_HS          MAKE_SQLSTATE('5','7', '0','1','5')
 #define ERRCODE_ADMIN_SHUTDOWN             MAKE_SQLSTATE('5','7', 'P','0','1')
 #define ERRCODE_CRASH_SHUTDOWN             MAKE_SQLSTATE('5','7', 'P','0','2')
 #define ERRCODE_CANNOT_CONNECT_NOW         MAKE_SQLSTATE('5','7', 'P','0','3')