diff --git a/server/modules/routing/schemarouter/schemaroutersession.cc b/server/modules/routing/schemarouter/schemaroutersession.cc index 3f7bbbddb..1c6da4173 100644 --- a/server/modules/routing/schemarouter/schemaroutersession.cc +++ b/server/modules/routing/schemarouter/schemaroutersession.cc @@ -1378,7 +1378,7 @@ void SchemaRouterSession::query_databases() m_state |= INIT_MAPPING; m_state &= ~INIT_UNINT; - GWBUF* buffer = modutil_create_query("SELECT schema_name FROM information_schema.schemata AS s " + GWBUF* buffer = modutil_create_query("SELECT CONCAT(schema_name, '.') FROM information_schema.schemata AS s " "LEFT JOIN information_schema.tables AS t ON s.schema_name = t.table_schema " "WHERE t.table_name IS NULL " "UNION "