trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbirds...@apache.org
Subject [1/2] incubator-trafodion git commit: fix TRAFODION-2712
Date Tue, 15 Aug 2017 16:20:31 GMT
Repository: incubator-trafodion
Updated Branches:
  refs/heads/master 93bb3df75 -> 49f9681f0


fix TRAFODION-2712


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

Branch: refs/heads/master
Commit: 47de0e2c6a4bb5dcf8031f47532313ca445d5a1b
Parents: 802f3b0
Author: SuJinpei <873118042@qq.com>
Authored: Mon Aug 14 20:29:27 2017 +0800
Committer: SuJinpei <873118042@qq.com>
Committed: Mon Aug 14 20:29:27 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/47de0e2c/core/conn/odb/src/odb.c
----------------------------------------------------------------------
diff --git a/core/conn/odb/src/odb.c b/core/conn/odb/src/odb.c
index 5ec4eb4..4db998c 100755
--- a/core/conn/odb/src/odb.c
+++ b/core/conn/odb/src/odb.c
@@ -3664,7 +3664,7 @@ Please note the fixed length '6' in strmicmp: SELECT/UPDATET/DELETE/INSERT
have
                     }
                     pos += snprintf(&obuff[pos], obl - pos, "%s</%s>", os, (char
*)&Ocnames[i*MAXCOL_LEN]);
                 }
-                pos += snprintf(&obuff[pos], obl - pos, "\n  <row>");
+                pos += snprintf(&obuff[pos], obl - pos, "\n  </row>");
             }
             break;
         case 3:                 /* Print Line Mode */
@@ -9686,7 +9686,7 @@ static void Oextract(int eid)
 #ifdef HDFS
         if ( etab[eid].fho ) {
             (*hdfswrite)(hfs, etab[eid].fho, (void *)xbuff, xbuffl);
-        } else if ( etab[eid].fho ) {
+        } else if ( etab[eid].fo ) {
             (void)fwrite ( xbuff, 1, xbuffl, etab[eid].fo );
         }
 #else
@@ -9910,7 +9910,7 @@ static void Oextract(int eid)
         }
 
         if ( etab[eid].flg2 & 04000000 ) {  /* initialize XML output buffer */
-            xbuffl = snprintf(xbuff, xbuffl, "\n<%s>\n",
+            xbuffl = snprintf(xbuff, xbuffl, "\n</%s>\n",
                 etab[eid].src ? etab[eid].src : "select" );
 #ifdef HDFS
             if ( etab[eid].fho ) {


Mime
View raw message