metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasper Sørensen <i.am.kasper.soren...@gmail.com>
Subject Re: Error while getting schema in for mysql
Date Thu, 07 Jul 2016 01:21:48 GMT
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 <arunkumar1111@gmail.com>:

> 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