Commit 77dd5ece authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix wrong return from ExecuteQuery

  modified:   storage/connect/jdbconn.cpp

- Suppress GCC warning
  modified:   storage/connect/tabjdbc.cpp
parent a982f59b
...@@ -1458,7 +1458,7 @@ int JDBConn::ExecuteQuery(char *sql) ...@@ -1458,7 +1458,7 @@ int JDBConn::ExecuteQuery(char *sql)
env->DeleteLocalRef(qry); env->DeleteLocalRef(qry);
} // endif xqid } // endif xqid
return RC_OK; return rc;
} // end of ExecuteQuery } // end of ExecuteQuery
/***********************************************************************/ /***********************************************************************/
......
...@@ -172,7 +172,7 @@ int JDBCDEF::ParseURL(PGLOBAL g, char *url, bool b) ...@@ -172,7 +172,7 @@ int JDBCDEF::ParseURL(PGLOBAL g, char *url, bool b)
if (server->port) { if (server->port) {
char buf[16]; char buf[16];
sprintf(buf, "%d", server->port); sprintf(buf, "%ld", server->port);
strcat(strcat(Url, ":"), buf); strcat(strcat(Url, ":"), buf);
} // endif port } // endif port
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment