Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 59581 invoked from network); 4 Jan 2006 17:35:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jan 2006 17:35:59 -0000 Received: (qmail 63259 invoked by uid 500); 4 Jan 2006 17:35:46 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 63125 invoked by uid 500); 4 Jan 2006 17:35:46 -0000 Mailing-List: contact ddlutils-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-dev@db.apache.org Delivered-To: mailing list ddlutils-dev@db.apache.org Received: (qmail 62925 invoked by uid 99); 4 Jan 2006 17:35:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2006 09:35:45 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [69.55.235.171] (HELO mvdb.net) (69.55.235.171) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 04 Jan 2006 09:35:43 -0800 Received: (qmail 10510 invoked from network); 4 Jan 2006 17:35:30 -0000 Received: from unknown (HELO [10.21.21.40]) (80.126.215.98) by 69.55.235.171 with SMTP; Wed, 04 Jan 2006 17:35:30 +0000 Message-ID: <43BC06EF.3020102@mvdb.net> Date: Wed, 04 Jan 2006 18:33:35 +0100 From: Martin van den Bemt User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ddlutils-dev@db.apache.org Subject: Re: svn commit: r365722 - /db/ddlutils/trunk/src/test/org/apache/ddlutils/io/ConstraintsTestBase.java References: <20060103195302.45696.qmail@minotaur.apache.org> <224f32340601031203g29baf52egcd8dfa5539c96117@mail.gmail.com> <43BAE7CE.9060806@mvdb.net> <224f32340601031449n7f8ba2b6o312b2b790909fe93@mail.gmail.com> <43BB0FDE.4060609@mvdb.net> <224f32340601031605w194eb352w88a23e5f6d21b69f@mail.gmail.com> In-Reply-To: <224f32340601031605w194eb352w88a23e5f6d21b69f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thomas Dudziak wrote: > On 1/4/06, Martin van den Bemt wrote: > >>If you don't mind : I am adding mysql anyway for now, since it almost needs lots of extensionsof the >>xml models (lot's of issues with equals on table names). >>I would appreciate it, if you don't touch these classes tonight or tomorrow during the day, since I >>really need working mysql integration at work tomorrow. > > > What version of MySql are you using ? 4.1.13 on windows 2000. Default install. After I hit the problem I tried fiddling with the lower_case_table_names setting and 2 gave some reasonable results, but if you do a rerun of the tests a couple of times, it is not that predictable anymore... > > >>If you have better ideas with this mysql shite, I like to hear it :). >>One solution could be to make all table names lowercase in the tests, but that will probably >>conflict with a database that only supports uppercase tablenames.. >>The commits will contain links to the mysql documents that talk about this issue. > > > Actually, I think one of the SQL standards *requires* the databases to > convert table names to uppercase in undelimited mode (and to use them > as-is in delimited mode), so I think the problem lies elsewhere. The tests are with delimited table names. Maybe just changing that could do the trick, but we also want something working with delimeters I guess :) Maybe you missed this link about the case sensitivity : http://dev.mysql.com/doc/refman/4.1/en/name-case-sensitivity.html (added that in MysqlModelReader). But I guess we will end up trying to work around these problems, since mysql is used pretty much, or maybe we should state on the website to use lowercase tablenames to be on the safe site or even maybe add a setting to not quote any tablenames. Btw if I create a table in mysql administrator in capitals (on anaother mysql instance, on windows XP, default install), it will create the table with lowercase names. > > I can have a quick look at it tomorrow or in the next like 20 minutes > if you want ? A sanity check would be nice.. I'll focus on the Datatypes and a double roundtrip, since roundtripping doesn't cover everything (eg the stuff that I wrote on the wiki about automatic conversion of VARCHAR 1024 to TEXT, which when reading back from mysql returns a LONGVARCHAR type, which ends up in mysql again as MEDIUMTEXT, you get the drift). Mvgr, Martin