datajoint-python icon indicating copy to clipboard operation
datajoint-python copied to clipboard

No error is thrown when a table name contains `_`

Open KonstantinWilleke opened this issue 4 years ago • 2 comments

When creating a Table with a name that contains an underscore _, there is no error that is being thrown Instead the table can be used normally. However, it will throw an error when a virtual module is created from the schema that contains such an invalid table.

Example error message when trying to create a virtual module:

The table __example_table__invalid_name does not follow DataJoint naming conventions

KonstantinWilleke avatar Jun 16 '20 18:06 KonstantinWilleke

@KonstantinWilleke Thanks for reporting this! Looks like the issue here is that the table declaration parsing is not properly instructing you that a table name such as Experimental_Session is invalid compared to ExperimentalSession. We will address this as an error reporting issue. Our documentation does indicate this properly here.

guzman-raphael avatar Jan 20 '21 21:01 guzman-raphael

Thanks a lot for picking it up! Cheers from germany :-)

KonstantinWilleke avatar Jan 20 '21 21:01 KonstantinWilleke