1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

- Fix wrong return from ExecuteQuery

modified:   storage/connect/jdbconn.cpp

- Suppress GCC warning
  modified:   storage/connect/tabjdbc.cpp
This commit is contained in:
Olivier Bertrand
2016-05-21 14:28:21 +02:00
parent a982f59b9b
commit 77dd5ece06
2 changed files with 2 additions and 2 deletions

View File

@@ -1458,7 +1458,7 @@ int JDBConn::ExecuteQuery(char *sql)
env->DeleteLocalRef(qry);
} // endif xqid
return RC_OK;
return rc;
} // end of ExecuteQuery
/***********************************************************************/

View File

@@ -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