You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i write a mysql charset and collation validate plugin which need do a sql query . but getConnection() method is private.
to do this i copy Context source code , and make it public.
sql :
select count(*) from information_schema.COLUMNS
WHERE table_name = ? AND (character_set_name <> ? or collation_name <> ?)
SELECT count(*)
FROM information_schema.TABLES s
LEFT JOIN information_schema.COLLATION_CHARACTER_SET_APPLICABILITY ccsa
ON ccsa.collation_name = s.table_collation
WHERE s.table_name = ? and (ccsa.CHARACTER_SET_NAME <> ? or s.TABLE_COLLATION <> ?)