note that using KEY instead of the defined key_alias has been removed

This commit is contained in:
Jonathan Ellis 2012-01-10 12:56:23 -06:00
parent d371edf623
commit d48a6c14f3
2 changed files with 6 additions and 3 deletions

View File

@ -39,6 +39,11 @@ Upgrading
- Hadoop input and output details are now separated. If you were
previously using methods such as getRpcPort you now need to use
getInputRpcPort or getOutputRpcPort depending on the circumstance.
- CQL changes:
+ Prior to 1.1, you could use KEY as the primary key name in some
select statements, even if the PK was actually given a different
name. In 1.1+ you must use the defined PK name.
Features
--------

View File

@ -160,7 +160,7 @@ public class WhereClause
for (Relation relation : clauseRelations)
{
String name = relation.getEntity().getText().toUpperCase();
if (name.equals(realKeyAlias) || name.equals("KEY"))
if (name.equals(realKeyAlias))
{
if (keyAlias == null) // setting found key as an alias
keyAlias = name;
@ -199,6 +199,4 @@ public class WhereClause
multiKey,
keyAlias);
}
}