Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ private String[] getCharsetAndCollation(String wikiName, Session session, XWikiC
if (!context.isMainWiki(wikiName)) {
NativeQuery<Object[]> selectQuery = session.createNativeQuery(
"select DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME from INFORMATION_SCHEMA.SCHEMATA"
+ " where SCHEMA_NAME='" + getSchemaFromWikiName(context.getMainXWiki(), context) + "'");
+ " where SCHEMA_NAME=:parameter0").setParameter("parameter0", getSchemaFromWikiName(context.getMainXWiki(), context));
Object[] queryResult = selectQuery.uniqueResult();
if (queryResult != null) {
charset = (String) queryResult[0];
Expand Down