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:
@@ -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)
|
|||||||
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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user