db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DDLUTILS-33) Error while instanciating a JdbcModelReader with MySQL (4.1)
Date Tue, 08 Nov 2005 22:08:21 GMT
    [ http://issues.apache.org/jira/browse/DDLUTILS-33?page=comments#action_12357088 ] 

Thomas Dudziak commented on DDLUTILS-33:
----------------------------------------

No, I think the idea should be that the default settings should work in most cases, and this
for every database. And if, say, the PostgreSQL and the MySQL jdbc driver require different
catalog and/or schema values, then we should recognize it and set different default values
for these databases.
This is why I put the jdbc model reader behind the Platform facade, to facilitate the subclassing
for the different databases in a way that is transparent to the user (who accesses - if at
all necessary - the model reader via the platform, not by creating an instance himself).
So IMO if a "" value for bot catalog and schema works for MySQL, and a null for catalog and
"%" for SQL Server (I take it, for the Microsoft driver ?), then we should set these as the
default values in the constructors of the respective MySqlJdbcModelReader and MSSqlJdbcModelReader
classes.


> Error while instanciating a JdbcModelReader with MySQL (4.1)
> ------------------------------------------------------------
>
>          Key: DDLUTILS-33
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-33
>      Project: DdlUtils
>         Type: Bug
>  Environment: MySQL
>     Reporter: Xavier TROUSSICOT
>     Assignee: Thomas Dudziak

>
> I get the following error :
> java.sql.SQLException: Can't read dir of '.\%\' (Errcode: 2)
> The following changes in JdbcModelReader bypass the problem :
>     /** The database catalog to read. */
>     private String catalog = "";
>     /** The database schema to read. */
>     private String schema = "";

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message