Skip to content

idea about "make Context.getConnection() method public" #770

@ningpp

Description

@ningpp

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 <> ?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions