Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 98440 invoked from network); 15 Apr 2008 00:24:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Apr 2008 00:24:45 -0000 Received: (qmail 90015 invoked by uid 500); 15 Apr 2008 00:24:44 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 90005 invoked by uid 500); 15 Apr 2008 00:24:44 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 89994 invoked by uid 99); 15 Apr 2008 00:24:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Apr 2008 17:24:44 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.155.252.219] (HELO warrior.cnchost.com) (207.155.252.219) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2008 00:24:01 +0000 Received: from [10.0.201.82] (203-97-203-224.dsl.clear.net.nz [203.97.203.224]) (Authenticated sender: david%reeltwo.com) by warrior.cnchost.com (ConcentricHost(2.70) Relay) with ESMTP id 997997AB for ; Mon, 14 Apr 2008 20:24:13 -0400 (EDT) Message-ID: <4803F5AA.3080604@reeltwo.com> Date: Tue, 15 Apr 2008 12:24:10 +1200 From: David Ware User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: torque-dev@db.apache.org Subject: Does torque shorten column identifiers to comply with database restrictions? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi all, My current task is to get our rather large torque using project working on DB2 (it has at various stages worked on MSSQL, and currently on postgres). The current problem I'm running into is DB2 does not allow column names of greater than length 30. I've had a look in the PlatformDb2Impl.java file and it defines getMaxColumnNameLength() to be 18 but the final values is the sql file are certainly not this short. So the questions are -Does torque in general support shortening column identifiers for the table creation stage? (I'll worry about the runtime when I get there) -If yes, what part of the DB2 templates/platform generator is likely to be the problem? -If no, what do I need to modify in order to add the support? and what is likely to break while I'm tinkering with it? Cheers, Dave Ware --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org