metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arunkumar Pillai <arunkumar1...@gmail.com>
Subject Error while getting schema in for mysql
Date Wed, 06 Jul 2016 08:58:19 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message