Skip to content

Cluster/J can fail to open a table #661

@jdduncan

Description

@jdduncan

The mysql server variable lower_case_table_names determines how table names are encoded in the MySQL and NDB data dictionaries. On Linux it is usually set to 0, so that table names are case-preserving, but this is not always the case.

When Cluster/J wants to open a table, it has no way of knowing how lower_case_table_names was set on the MySQL server that created the table. At least, that is my understanding of the comment in DictionaryImpl.getTable(), "try the lower case table name," around line 70 in DictionaryImpl.java.

The patch for RONDB-180 added a four-line block of error handling code above this comment and again below it. The block above the comment prevents the intended fall-through in case the table was not found. It could be changed to check for this error, or it could simply be deleted.

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