From torque-dev-return-7701-apmail-db-torque-dev-archive=db.apache.org@db.apache.org Fri Feb 02 21:53:26 2007 Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 19317 invoked from network); 2 Feb 2007 21:53:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Feb 2007 21:53:26 -0000 Received: (qmail 22523 invoked by uid 500); 2 Feb 2007 21:53:32 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 22507 invoked by uid 500); 2 Feb 2007 21:53:32 -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 22496 invoked by uid 99); 2 Feb 2007 21:53:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 13:53:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Feb 2007 13:53:25 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B6D0C71429F for ; Fri, 2 Feb 2007 13:53:05 -0800 (PST) Message-ID: <6317419.1170453185744.JavaMail.jira@brutus> Date: Fri, 2 Feb 2007 13:53:05 -0800 (PST) From: "Thomas Fischer (JIRA)" To: torque-dev@db.apache.org Subject: [jira] Closed: (TORQUE-80) Default Values with an empty string in the schema results in bad source generation for number types In-Reply-To: <23991484.1169942329293.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TORQUE-80?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fischer closed TORQUE-80. -------------------------------- Resolution: Fixed Fix Version/s: 3.3 Assignee: Thomas Fischer Patch applied. Thanks a lot. > Default Values with an empty string in the schema results in bad source generation for number types > --------------------------------------------------------------------------------------------------- > > Key: TORQUE-80 > URL: https://issues.apache.org/jira/browse/TORQUE-80 > Project: Torque > Issue Type: Bug > Components: Generator > Reporter: Brian Telintelo > Assigned To: Thomas Fischer > Fix For: 3.3 > > > Using a mysql database, a data type that is numerical, but has no default value results in the schema generation to have default="". This causes the om generator to create java file that are declared like int customerID = ; This causes a compile error. > To fix, just change org.apache.torque.task.TorqueJDBCTransformTask line 308 from > if (defValue1 != null) > to > if (StringUtils.isNotEmpty(defValue)) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org