diff --git a/src/gpre/c_cxx.cpp b/src/gpre/c_cxx.cpp index 138537a80a..c861abe3be 100644 --- a/src/gpre/c_cxx.cpp +++ b/src/gpre/c_cxx.cpp @@ -3134,6 +3134,7 @@ static void gen_select( const act* action, int column) gen_receive(action, column, port); printa(column, "if (!SQLCODE)"); column += INDENT; + begin(column); printa(column, "if (%s)", name); column += INDENT; @@ -3153,8 +3154,11 @@ static void gen_select( const act* action, int column) endp(column); printa(column - INDENT, "else"); + begin(column); printa(column, "SQLCODE = 100;"); + endp(column); column -= INDENT; + endp(column); column -= INDENT; endp(column); }