Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1887

SQL scripts and ANSI_SQL_COMMENTS_PATTERN - unable to insert URL

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • persistence_1.0.0.Alpha7
    • None

      Unable to insert URLs using @ApplyScriptBefore - example below.

      sample.sql
      INSERT INTO CONFIG(NAME, MODULE, VALUE) VALUES('core.url', 'isep-core-tck', 'http://localhost:41080/BusinessLogicVersioningTest/api/v1');
      

      Setting showSql to true in persistence-script extension configuration in arquillian.xml produces the following output:

      output.log
      INSERT INTO CONFIG(NAME, MODULE, VALUE) VALUES('core.url', 'isep-core-tck', 'http:
      

      The double slash (//) after the protocol is treated as a comment and thus the rest of the statement is ignored.

      Shouldn't the // character sequence be treated as a comment only if it's placed at the beginning of a line?

              bartosz-1 Bartosz Majsak
              arkadiuszg_jira Arkadiusz GasiƄski (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: