Skip to content

Commit

Permalink
Merge branch 'master' of github.com:deanhiller/playorm
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Hiller committed Jan 30, 2013
2 parents d460377 + a3fbab0 commit 9eff6b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,13 @@ public Cursor<IndexPoint> indexView(String columnFamily, String column,
if(meta == null)
throw new IllegalArgumentException("columnFamily="+columnFamily+" not found");
DboColumnMeta colMeta = meta.getColumnMeta(column);
if(colMeta == null)
throw new IllegalArgumentException("Column="+column+" not found on meta info for column family="+columnFamily);
if (colMeta == null) {
colMeta = meta.getIdColumnMeta();
if (!(colMeta != null && colMeta.getColumnName().equals(column)))
throw new IllegalArgumentException("Column=" + column
+ " not found on meta info for column family="
+ columnFamily);
}
else if(!colMeta.isIndexed())
throw new IllegalArgumentException("Column="+column+" is not an indexed column");
else if(meta.getPartitionedColumns().size() > 1 && partitionBy == null)
Expand Down
2 changes: 2 additions & 0 deletions input/javasrc/com/alvazan/ssql/cmdline/CmdIndex.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ private ColFamilyData goMore(NoSqlEntityManager mgr, String cf, String lastPart)

DboColumnMeta colMeta = meta.getColumnMeta(field);
if(colMeta == null) {
colMeta = meta.getIdColumnMeta();
if(!(colMeta != null && colMeta.getColumnName().equals(field)))
throw new InvalidCommand("Column="+field+" not found on table="+cf);
}

Expand Down

0 comments on commit 9eff6b4

Please sign in to comment.