You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by sa...@apache.org on 2016/01/05 21:44:52 UTC
phoenix git commit: PHOENIX-2086 CONSTRAINT_VIOLATION error code
should use sqlstate 23, not 22
Repository: phoenix
Updated Branches:
refs/heads/master 8d3c778a9 -> d3288d01e
PHOENIX-2086 CONSTRAINT_VIOLATION error code should use sqlstate 23, not 22
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo
Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/d3288d01
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/d3288d01
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/d3288d01
Branch: refs/heads/master
Commit: d3288d01eb1ad4a9b9f6598bb8242295abbdd31b
Parents: 8d3c778
Author: Samarth <sa...@salesforce.com>
Authored: Tue Jan 5 12:44:39 2016 -0800
Committer: Samarth <sa...@salesforce.com>
Committed: Tue Jan 5 12:44:39 2016 -0800
----------------------------------------------------------------------
.../java/org/apache/phoenix/exception/SQLExceptionCode.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/phoenix/blob/d3288d01/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
----------------------------------------------------------------------
diff --git a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
index 228f06f..38e8ea0 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/exception/SQLExceptionCode.java
@@ -83,11 +83,8 @@ public enum SQLExceptionCode {
SINGLE_ROW_SUBQUERY_RETURNS_MULTIPLE_ROWS(215, "22015", "Single-row sub-query returns more than one row."),
SUBQUERY_RETURNS_DIFFERENT_NUMBER_OF_FIELDS(216, "22016", "Sub-query must return the same number of fields as the left-hand-side expression of 'IN'."),
AMBIGUOUS_JOIN_CONDITION(217, "22017", "Ambiguous or non-equi join condition specified. Consider using table list with where clause."),
- CONSTRAINT_VIOLATION(218, "22018", "Constraint violation."),
+ CONSTRAINT_VIOLATION(218, "23018", "Constraint violation."),
- /**
- * Constraint Violation (errorcode 03, sqlstate 23)
- */
CONCURRENT_TABLE_MUTATION(301, "23000", "Concurrent modification to table.", new Factory() {
@Override
public SQLException newException(SQLExceptionInfo info) {