cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tylerho...@apache.org
Subject cassandra git commit: ninja: fix column name in SELECT stmt error message
Date Wed, 07 Jan 2015 23:11:28 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 96365bf55 -> 6afab52b2


ninja: fix column name in SELECT stmt error message


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6afab52b
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6afab52b
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6afab52b

Branch: refs/heads/cassandra-2.1
Commit: 6afab52b27de4b5d8b377d4fb7d15012bc43527c
Parents: 96365bf
Author: Tyler Hobbs <tyler@datastax.com>
Authored: Wed Jan 7 17:11:01 2015 -0600
Committer: Tyler Hobbs <tyler@datastax.com>
Committed: Wed Jan 7 17:11:01 2015 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/cql3/statements/SelectStatement.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6afab52b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
index 4163315..96d91b9 100644
--- a/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
+++ b/src/java/org/apache/cassandra/cql3/statements/SelectStatement.java
@@ -1945,7 +1945,7 @@ public class SelectStatement implements CQLStatement
                             break;
                         }
                         throw new InvalidRequestException(String.format(
-                                "PRIMARY KEY column \"%s\" cannot be restricted (preceding
column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous));
+                                "PRIMARY KEY column \"%s\" cannot be restricted (preceding
column \"%s\" is either not restricted or by a non-EQ relation)", cdef.name, previous.name));
                     }
                 }
                 else if (restriction.isSlice())


Mime
View raw message