Permalink
Browse files

Support char column data type in BQL.

  • Loading branch information...
1 parent 3cc8901 commit fd6009f54ada28cafa2a553186857b0f14f61ab6 Baoqiu Cui committed May 2, 2012
@@ -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)
@@ -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")) {

0 comments on commit fd6009f

Please sign in to comment.