Merge branch 'develop' into MXS-1209
This commit is contained in:
@ -1724,7 +1724,7 @@ convert_arg(char *arg, int arg_type)
|
||||
break;
|
||||
|
||||
case ARG_TYPE_SESSION:
|
||||
rval = (unsigned long)session_get_by_id(strtol(arg, NULL, 0));
|
||||
rval = (unsigned long)session_get_by_id(strtoul(arg, NULL, 0));
|
||||
break;
|
||||
|
||||
case ARG_TYPE_MONITOR:
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
#include "schemarouter.hh"
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <maxscale/alloc.h>
|
||||
#include <maxscale/query_classifier.h>
|
||||
#include <maxscale/modutil.h>
|
||||
@ -361,7 +363,7 @@ int32_t SchemaRouterSession::routeQuery(GWBUF* pPacket)
|
||||
if (m_config->debug)
|
||||
{
|
||||
sprintf(errbuf + strlen(errbuf),
|
||||
" ([%lu]: DB change failed)",
|
||||
" ([%" PRIu32 "]: DB change failed)",
|
||||
m_client->session->ses_id);
|
||||
}
|
||||
|
||||
@ -989,7 +991,7 @@ bool SchemaRouterSession::handle_default_db()
|
||||
sprintf(errmsg, "Unknown database '%s'", m_connect_db.c_str());
|
||||
if (m_config->debug)
|
||||
{
|
||||
sprintf(errmsg + strlen(errmsg), " ([%lu]: DB not found on connect)",
|
||||
sprintf(errmsg + strlen(errmsg), " ([%" PRIu32 "]: DB not found on connect)",
|
||||
m_client->session->ses_id);
|
||||
}
|
||||
write_error_to_client(m_client,
|
||||
|
Reference in New Issue
Block a user