Uploaded image for project: 'Teiid Designer'
  1. Teiid Designer
  2. TEIIDDES-2954

Dynamic VDB doesn't contains apostrophe around procedure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 10.0.2
    • Dynamic VDBs
    • None
      1. Import project
      2. Generate dynamic VDB
      3. Look at BooksMatView table

      I have a project with JDG materialization. I have set
      After load script to: execute BookCacheSource.native('swap cache names');
      and
      Before load script to: execute BookCacheSource.native('truncate cache');

      When I generated Dynamic VDB and I want to deploy it, server shows me error that:

      org.teiid.api.exception.query.QueryParserException: TEIID31100 Parsing error: Encountered ", \"teiid_rel:MATVIEW_AFTER_LOAD_SCRIPT\" 'execute BookCacheSource.native('[*]swap[*] cache names" at line 10, column 188.
      Was expecting: "," | ")"
      

      When I added another apostrophe to procedures in the DDL,
      execute BookCacheSource.native(''truncate cache'');
      execute BookCacheSource.native(''swap cache names'');
      deploy was successful.
      I think that DDL parser should add it automatically.

              Unassigned Unassigned
              mkralik@redhat.com Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: