Hi,
Could someone check in this fix for a bug in Table.java? In the
function getForeignTableNames() it makes a duplicate copy of the foreign
table name in the table's foreign table name list, which isn't called
anywhere within the source code (which is probably why it's never been
exposed).
Thanks!
--Xinghai
Index:
src/generator/src/java/org/apache/torque/engine/database/model/Table.jav
a
===================================================================
RCS file:
/home/cvspublic/jakarta-turbine-torque/src/generator/src/java/org/apac
he/torque/engine/database/model/Table.java,v
retrieving revision 1.5
diff -u -b -r1.5 Table.java
---
src/generator/src/java/org/apache/torque/engine/database/model/Table.jav
a1 D
ec 2003 16:56:30 -0000 1.5
+++
src/generator/src/java/org/apache/torque/engine/database/model/Table.jav
a28
Jan 2004 17:09:49 -0000
@@ -515,7 +515,7 @@
{
foreignTableNames = new ArrayList(5);
}
- if (foreignTableNames.contains(fk.getForeignTableName()))
+ if (!foreignTableNames.contains(fk.getForeignTableName()))
{
foreignTableNames.add(fk.getForeignTableName());
}
This email, including any attachments and files transmitted with it, are for the sole
use of the intended recipient(s) to whom this email is addressed, and may contain
confidential and/or privileged information. Any unauthorized review, use, disclosure
or distribution is prohibited. If you are not the intended recipient, please be
advised that you have received this email in error, and please contact the sender by
reply email and destroy all copies (including all electronic and hard copies) of the
original message. Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]