Please report this as a bug in JIRA and please also include a bit more of the of the stack trace.
2016-07-06 1:58 GMT-07:00 Arunkumar Pillai <[email protected]>: > Hi > > I'm trying to list all table names from a schema > I'm getting the following error > > String connectionURL = "jdbc:mysql://localhost:3306"; > String userName = "user"; > String password = "pass"; > > DataContext dataContext = > DataContextFactory.createJdbcDataContext(connection); > Schema schemas = dataContext.getSchemaByName("exampledb"); > > > Exception in thread "main" org.apache.metamodel.MetaModelException: Could > not retrieve table metadata for exampledb: Table name pattern can not be > NULL or empty. > at org.apache.metamodel.jdbc.JdbcUtils.wrapException(JdbcUtils.java:70) > > > > It works fine for postgres > -- > Thanks and Regards > Arun >
