You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by db...@apache.org on 2017/11/13 22:07:58 UTC
[2/3] incubator-trafodion git commit: limit currentFiledPos to be in
for scope
limit currentFiledPos to be in for scope
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/f6c9bace
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/f6c9bace
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/f6c9bace
Branch: refs/heads/master
Commit: f6c9baceba4fcfd72fee81bb22a772233078deae
Parents: f878f5e
Author: SuJinpei <87...@qq.com>
Authored: Tue Nov 7 09:15:41 2017 +0800
Committer: SuJinpei <87...@qq.com>
Committed: Tue Nov 7 09:15:41 2017 +0800
----------------------------------------------------------------------
core/conn/odb/src/odb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/f6c9bace/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index 8e2115d..31bdb95 100755
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -8425,9 +8425,9 @@ static void Oload2(int eid)
}
len-- ;
}
- bc = buff ; /* Initialize current field position */
- size_t currentFiledPos = 0;
- while (currentFiledPos < len) {
+ bc = buff ;
+
+ for (size_t currentFiledPos = 0; currentFiledPos < len;) {
ifl = 0;
for (; currentFiledPos < len; ++currentFiledPos) {
if ((fg & 0001) && (fg & 0100) && (bc[currentFiledPos] == lfs || bc[currentFiledPos] == lrs)) { /* treat string qualifier before as end quote */