Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-61

column DEFAULT - SQL error during create table in ddlToDatabase( to MySQL) using files produced by databaseToDdl(from MSSQL)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0 RC1
    • Core - SqlServer
    • None
    • Windows 2K
      MSSQL 2000
      JDBC Driver - jtds
      MySQL 5.0
      JDBC driver - MySQL Connector/J - mysql-connector-java-5.0.0-beta

    Description

      • 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.

      Attachments

        Issue Links

          Activity

            People

              tomdz Thomas Dudziak
              appajee Appajee Papolu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: