Return-Path: Delivered-To: apmail-db-ojb-dev-archive@www.apache.org Received: (qmail 10004 invoked from network); 28 Jan 2004 17:27:32 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Jan 2004 17:27:32 -0000 Received: (qmail 3522 invoked by uid 500); 28 Jan 2004 17:26:40 -0000 Delivered-To: apmail-db-ojb-dev-archive@db.apache.org Received: (qmail 3446 invoked by uid 500); 28 Jan 2004 17:26:40 -0000 Mailing-List: contact ojb-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "OJB Developers List" Reply-To: "OJB Developers List" Delivered-To: mailing list ojb-dev@db.apache.org Received: (qmail 3329 invoked from network); 28 Jan 2004 17:26:39 -0000 Received: from unknown (HELO olinexvs01.olin.edu) (4.21.173.2) by daedalus.apache.org with SMTP; 28 Jan 2004 17:26:39 -0000 Received: from olinexfe01.olin.edu ([10.1.15.93]) by olinexvs01.olin.edu with Microsoft SMTPSVC(5.0.2195.6713); Wed, 28 Jan 2004 11:06:32 -0500 Received: from olin.edu ([4.36.33.205]) by olinexfe01.olin.edu (SAVSMTP 3.0.0.44) with SMTP id M2004012811063204083 for ; Wed, 28 Jan 2004 11:06:32 -0500 Message-ID: <4017DD45.7090001@olin.edu> Date: Wed, 28 Jan 2004 11:03:17 -0500 From: Gus Heck User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20030917 X-Accept-Language: en-us, en MIME-Version: 1.0 To: OJB Developers List Subject: Re: torqueschema bug? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Jan 2004 16:06:32.0257 (UTC) FILETIME=[B22D6B10:01C3E5B8] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hmm, I am using MySQL 4.0.14-standard with databaseDriver = org.gjt.mm.mysql.Driver downloaded from thier site at the same time. The exception I got contained the message containing the usual your sql stinks message (there is a problem with your syntax near "LONGVARBINARY Address" etc) (that is by memory not a paste). If I have some time later I will see if I can't do the test you describe. - Gus Thomas Dudziak wrote: >On Tue, 27 Jan 2004, Gus Heck wrote: > > > >>Not sure if this is the right place to post this, but here goes... >> >>I had an interesting experience with torque recently... I had a field >>that was a nonpersistant class, and torqueshcema decided that it should >>be stored as type "LONGVARBINARY". This caused problems, as when my code >>tried to push that into MySQL 4 it choked probably because (according to >>my MySQL book) MySQL expects it to be "LONG VARBINARY" (note the space) >>or "MEDIUMBLOB". >> >> > >In the torque schema, LONGVARBINARY is correct (see dtd at >http://db.apache.org/torque/generator/database.dtd.txt). The XDoclet OJB >module uses it when it encounters an not-persistent datatype without a >predefined mapping. >As for mysql, I'm not sure whether LONG VARBINARY would be correct >either. The manual defines neither but mentions that myODBC defines >LONGVARBINARY for BLOBs (http://www.mysql.com/doc/en/BLOB.html) which >might also affect the jdbc driver. > >So this might be a bug in torque, or a problem with your MySQL version >(or jdbc-driver which probably does the mapping) ? >If you're unsure, you could create a simple table with a LONGVARBINARY >column using with the 'sql' ant task and your jdbc driver and settings. > >Tom > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org >For additional commands, e-mail: ojb-dev-help@db.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org For additional commands, e-mail: ojb-dev-help@db.apache.org