You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by su...@apache.org on 2016/07/05 13:48:48 UTC

[1/2] incubator-trafodion git commit: [TRAFODION-2034] write failed row to bad record file when load with parameter bad

Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 64ace98a2 -> 160ac1c5a


[TRAFODION-2034] write failed row to bad record file when load with parameter bad


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/0f28ece3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/0f28ece3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/0f28ece3

Branch: refs/heads/master
Commit: 0f28ece37e5bb85de1777df0ff29e499dd4c0b2d
Parents: f4d9910
Author: Zale <49...@qq.com>
Authored: Thu Jun 30 10:56:44 2016 -0700
Committer: Zale <49...@qq.com>
Committed: Thu Jun 30 10:56:44 2016 -0700

----------------------------------------------------------------------
 core/conn/odb/src/odb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/0f28ece3/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index c37196b..3e5ca71 100644
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -11467,7 +11467,9 @@ static void prec(char type, unsigned char *podbc, int eid)
 
     if ( type == 'L' ) {
         gpar = etab[eid].parent;
-        nfields = (unsigned int)etab[gpar].sp ;
+        /* nfields = (unsigned int)etab[gpar].sp ; */
+        /* fix jira 2034, write to bad_record if load with parameter 'bad', etab[gpar].sp equals 0 always */
+        nfields = (unsigned int)etab[eid].sp ;
     }
     MutexLock(&etab[gpar].pmutex);      /* lock mutex */
     if ( !(etab[gpar].flg2 & 0200) ) {


[2/2] incubator-trafodion git commit: Merge [TRAFODION-2034] PR-570 Cannot output bad records in the loaded file even if specified file for storing bad records

Posted by su...@apache.org.
Merge [TRAFODION-2034] PR-570 Cannot output bad records in the loaded file even if specified file for storing bad records


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/160ac1c5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/160ac1c5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/160ac1c5

Branch: refs/heads/master
Commit: 160ac1c5a18af1c74ef31240d355490e48266ab7
Parents: 64ace98 0f28ece
Author: Suresh Subbiah <su...@apache.org>
Authored: Tue Jul 5 13:48:26 2016 +0000
Committer: Suresh Subbiah <su...@apache.org>
Committed: Tue Jul 5 13:48:26 2016 +0000

----------------------------------------------------------------------
 core/conn/odb/src/odb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------