Uploaded image for project: 'Hibernate ORM'
  1. HHH-11183

Mixed line endings in schema creation script

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: 5.0.11, 5.2.3
    • Fix versions: 5.2.6
    • Components: None
    • Environment:
      Windows.
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Hi.

      I have a program that exports the database schema creation script to a file using ExportSchema.

      Under Windows the output contains a mix of end of lines. New lines inside a sentence use \n and the last line uses \r\n. For example:

      create table Foo (\n
          column...,\n
      ) ENGINE=InnoDB;\r\n
      

      From what I have seen, AbstractScriptTargetOutput uses line.separator, but Formatter derived classes BasicFormatterImpl and DDLFormatterImpl use hardcoded \n.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: