commit | df89cd6c4f77f36031ca6f5000d0612d3edf0394 | [log] [tgz] |
---|---|---|
author | Liu Ming <ovis_poly@sina.com> | Sun Sep 09 11:17:48 2018 +0000 |
committer | Liu Ming <ovis_poly@sina.com> | Sun Sep 09 11:17:48 2018 +0000 |
tree | 50583aaadb86ed7ffa1cdf351361444bab4e9247 | |
parent | 159a26dd038fc5078b0e29725efdfbaeeb9b55d8 [diff] |
the assert is good, just need to fix the comments
diff --git a/core/sql/executor/ExExeUtilCli.cpp b/core/sql/executor/ExExeUtilCli.cpp index 058ea11..434e4dd 100644 --- a/core/sql/executor/ExExeUtilCli.cpp +++ b/core/sql/executor/ExExeUtilCli.cpp
@@ -46,6 +46,8 @@ : numEntries_(numEntries) { + ex_assert( numEntries <= MAX_OUTPUT_ENTRIES, "try to fetch more than max columns allowed"); + for (Int32 i = 0; i < numEntries_; i++) { data_[i] = NULL;