Skip to content

Commit

Permalink
- Fix wrong return from ExecuteQuery
Browse files Browse the repository at this point in the history
  modified:   storage/connect/jdbconn.cpp

- Suppress GCC warning
  modified:   storage/connect/tabjdbc.cpp
  • Loading branch information
Buggynours committed May 21, 2016
1 parent c92f260 commit d25fd43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storage/connect/jdbconn.cpp
Expand Up @@ -1458,7 +1458,7 @@ int JDBConn::ExecuteQuery(char *sql)
env->DeleteLocalRef(qry);
} // endif xqid

return RC_OK;
return rc;
} // end of ExecuteQuery

/***********************************************************************/
Expand Down
2 changes: 1 addition & 1 deletion storage/connect/tabjdbc.cpp
Expand Up @@ -172,7 +172,7 @@ int JDBCDEF::ParseURL(PGLOBAL g, char *url, bool b)
if (server->port) {
char buf[16];

sprintf(buf, "%d", server->port);
sprintf(buf, "%ld", server->port);
strcat(strcat(Url, ":"), buf);
} // endif port

Expand Down

0 comments on commit d25fd43

Please sign in to comment.