Return-Path: Delivered-To: apmail-db-ddlutils-dev-archive@www.apache.org Received: (qmail 94009 invoked from network); 19 Jul 2006 05:19:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Jul 2006 05:19:25 -0000 Received: (qmail 97333 invoked by uid 500); 19 Jul 2006 05:19:25 -0000 Delivered-To: apmail-db-ddlutils-dev-archive@db.apache.org Received: (qmail 97312 invoked by uid 500); 19 Jul 2006 05:19:25 -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 97297 invoked by uid 99); 19 Jul 2006 05:19:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 22:19:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jul 2006 22:19:24 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 411F441000E for ; Wed, 19 Jul 2006 05:17:15 +0000 (GMT) Message-ID: <31310398.1153286235263.JavaMail.jira@brutus> Date: Tue, 18 Jul 2006 22:17:15 -0700 (PDT) From: "Thomas Dudziak (JIRA)" To: ddlutils-dev@db.apache.org Subject: [jira] Commented: (DDLUTILS-61) column DEFAULT - SQL error during create table in ddlToDatabase( to MySQL) using files produced by databaseToDdl(from MSSQL) In-Reply-To: <1512010482.1137776801969.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 [ http://issues.apache.org/jira/browse/DDLUTILS-61?page=comments#action_12422037 ] Thomas Dudziak commented on DDLUTILS-61: ---------------------------------------- Could you state the row as it is in the database, e.g by copying from some SQL tool ? I'm interested in the default value as it is in the database. You can also try to run your test again, as I've made some changes to strip away stuff that Sql Server adds to the concrete default value, like parentheses. > column DEFAULT - SQL error during create table in ddlToDatabase( to MySQL) using files produced by databaseToDdl(from MSSQL) > ------------------------------------------------------------------------------------------------------------------------------- > > Key: DDLUTILS-61 > URL: http://issues.apache.org/jira/browse/DDLUTILS-61 > Project: DdlUtils > Issue Type: Bug > Components: Core - SqlServer > Environment: Windows 2K > MSSQL 2000 > JDBC Driver - jtds > MySQL 5.0 > JDBC driver - MySQL Connector/J - mysql-connector-java-5.0.0-beta > Reporter: Appajee Papolu > Assigned To: Thomas Dudziak > Fix For: 1.0 > > > - Dumped out a database from MSSQL using ddlutils ant task > - Using these files, attempting creating the equivalent database on MySQL 5.0 > - Getting few errors as below: > CREATE TABLE `whatever` > ( > `col1` INTEGER NOT NULL, > `col2` INTEGER NOT NULL, > `col3` CHAR(1) DEFAULT '('0')' NULL > ) failed with You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0')' NULL > - I changed the col3 line to as follows and then the ddltodatabase works fine > `col3` CHAR(1) DEFAULT '0' NULL > - I could not find info if there were any user configurable settings that can overcome this problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira