Skip to content

Commit

Permalink
Support char column data type in BQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoqiu Cui committed May 2, 2012
1 parent 3cc8901 commit fd6009f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/python/sensei/sensei_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def help():

if command == "select":
res = client.doQuery(stmt, var_map=var_map)
error = res.errors[0]
error = res.errors and res.errors[0] or None
if error:
err_code = error.get(PARAM_RESULT_ERROR_CODE)
err_msg = error.get(PARAM_RESULT_ERROR_MESSAGE)
Expand Down
2 changes: 1 addition & 1 deletion sensei-core/src/main/antlr3/com/senseidb/bql/parsers/BQL.g
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ import java.text.SimpleDateFormat;
else if (columnType.equals("float") || columnType.equals("double")) {
return !(value instanceof String || value instanceof Boolean);
}
else if (columnType.equals("string")) {
else if (columnType.equals("string") || columnType.equals("char")) {
return (value instanceof String);
}
else if (columnType.equals("boolean")) {
Expand Down

0 comments on commit fd6009f

Please sign in to comment.