The problem is in "nonconfirmant schema" e.g.
---
<app-data>
<database name="default" baseClass="BaseObject" basePeer="BasePeer">
<table name="PERSON_AGE" javaname="PersonAge" idMethod="idbroker">
<column name="AGE_ID" javaName="AgeId" primaryKey="true" required="true" type="INTEGER" />
<column name="AGE_DESCRIPTION" javaName="AgeDescription" required="true" type="VARCHAR" size="20" />
</table>
<table name="PERSON_ACCOUNT" javaname="PersonAccount" idMethod="none">
<!--column name="PERSON_AGE" javaName="AgeId" required="true" type="INTEGER" /-->
<column name="bank_name" javaName="BankName" required="false" type="VARCHAR" size="64" />
<column name="bank_account" javaName="BankAccount" required="false" type="VARCHAR" size="16" />
<column name="bank_number" javaName="BankNumber" required="false" type="VARCHAR" size="8" />
<column name="created" javaName="Created" required="false" type="DATE" default="" />
<foreign-key foreignTable="PERSON_AGE">
<reference local="PERSON_AGE" foreign="AGE_ID"/>
</foreign-key>
</table>
</database></app-data>
---

where You can see , that "<column name="PERSON_AGE" javaName="AgeId" required="true" type="INTEGER" />" is commented out, so ANT / respectively Torque should report an error, but instead of it hangs (my experince).

Calling: ant -f build-torque.xml sql

Tomas

PS: Thanks for readonly access :o)) (After a while and a bit of luck I found it as well).

John McNally wrote:

What is the bug?

readonly access instructions here:

http://jakarta.apache.org/site/cvsindex.html

john mcnally

On Fri, 2002-11-15 at 05:44, Tomas Dusek wrote:

Hi @all,

I am pretty new in this Project, but anyhow I would like to Contribute, or at least to inform other this BUG:

File: Database.java
Package: org.apache.torque.engine.database.model
Version: Database.java,v 1.16 2002/09/15 03:16:56 jmcnally
Where: doFinalInitialization() method

// local column references
Iterator localColumnNames = currFK.getLocalColumns().iterator();
while (localColumnNames.hasNext())
{
String localColumnName = (String)localColumnNames.next();
Column local = currTable
.getColumn(localColumnName);
// give notice of a schema inconsistency.
// note we do not prevent the npe as there is nothing
// that we can do, if it is to occur.
if ( local == null )
{
System.out.println("ERROR!! Attempt to define foreign"
+ " key with nonexistent column, " +
localColumnName + ", in table, " +
currTable.getName() + "!" );
}
else
{
//check for foreign pk's
if (local.isPrimaryKey())
{
currTable.setContainsForeignPK(true);
}
}
}


---

I have not found an info, as well not in jakarta.apache.org, how to obtain write/suggest or any other type of access into CVS.

If anybody could help me ??

Thanks Tomas




--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to