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

Reply via email to