Hello,

Sorry if this is not the good way to report bugs but I have not been able to
go on Jboss website to read howto (to what I have seen, there seem to be a
bugzilla application).

I have found a bug in the
\org\jboss\ejb\plugins\jaws\jdbc\JDBCInitCommand.java file. In the
"JDBCInitCommand" method, we have:

         sql += (first ? "" : ",") +
                cmpField.getColumnName() + " " +
                cmpField.getSQLType() +
                // If the current field is the primary key field,
                // add the constraint that this field is primary key.
                // This is useful for some dbase editors like MS Access 97
                // that require this information for better editing.

(jawsEntity.getPrimKeyField().equals(cmpField.getColumnName())?
                        " CONSTRAINT pk"+jawsEntity.getTableName()+" PRIMARY
KEY":"");

But, on the last line, a space is missing i.e. it should be :

                  ...
                        " CONSTRAINT pk "+jawsEntity.getTableName()+" PRIMARY
KEY":"");
                  <=>

Consequently, the SQL command is incorrect " CONSTRAINT pkMyTable PRIMARY
KEY".

Why don't you meet this error? how should I correct this (I mean, in CVS,
not by me ;) )

Cheers,



                                Sacha

- - - - - - - - - - - - - - - - - - - - - -
Sacha Labourey        Cogito Informatique
Ing. Inf. Dipl. EPF   4, Verger l'Ecuyer
Tél +41 32 754 36 41  CH - 2068 Hauterive
    +41 78 701 08 08  Fax +41 32 754 36 42


Reply via email to