Uploaded image for project: 'i2b2 Core Software'
  1. i2b2 Core Software
  2. CORE-91

PostgreSQL: Error executing CRC stored procedure CREATE_TEMP_PROVIDER_TABLE

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.00, 1.7.01
    • 1.7.02
    • Install
    • None
    • PostgreSQL Database
    • PostgreSQL

    Description

      PROBLEM:
      An error is returned when running the ant script to create the CRC Stored Procedures. Upon further investigation it appears the problem is with the create statement in the CREATE_TEMP_PROVIDER_TABLE.sql script. The following statements are excerpts from the error received when running this script.


      ERROR MESSAGE (EXCERPTS):

      Failed to execute:
      CREATE OR REPLACE FUNCTION create_temp_provider_table (tempProviderTableName IN text,
          errorMsg OUT text)
      RETURNS
      CREATE_TEMP_PROVIDER_TABLE.sql
      text AS $body$
      . . .
      Org.postgresql.util.PSQLException: ERROR: syntax error at or near "text"
           Position: 152



      RECOMMENDED SOLUTION:

      Remove the reference to CREATE_TEMP_PROVIDER_TABLE.sql in the script. The edited version would be as follows:

      CREATE OR REPLACE FUNCTION create_temp_provider_table (tempProviderTableName IN text,
          errorMsg OUT text)
      RETURNS text AS $body$
      . . . the rest of the script

      Attachments

        Activity

          melek Melek Somai created issue -
          This has been fixed as suggested and will be included in the 1.7.02 release.
          jmd86 Janice Donahoe added a comment - This has been fixed as suggested and will be included in the 1.7.02 release.
          jmd86 Janice Donahoe made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          jmd86 Janice Donahoe made changes -
          Workflow classic default workflow [ 10244 ] i2b2 Issues [ 10410 ]
          jmd86 Janice Donahoe made changes -
          Component/s Install [ 10020 ]
          jmd86 Janice Donahoe made changes -
          Workflow i2b2 Issues [ 10410 ] i2b2 Issues Workflow [ 10477 ]
          jmd86 Janice Donahoe made changes -
          Affects Database/s PostgreSQL [ 10188 ]
          jmd86 Janice Donahoe made changes -
          Component/s Install [ 10053 ]
          Component/s Install [ 10020 ]
          Fix Version/s 1.7.02 [ 10155 ]
          Fix Version/s 1.7.02 [ 10091 ]
          Key LEOPARD-146 CORE-91
          Project i2b2 [ 10000 ] i2b2 Core Project [ 10034 ]
          Affects Version/s 1.7.01 [ 10154 ]
          Affects Version/s 1.7.00 [ 10153 ]
          Affects Version/s 1.7.00 [ 10081 ]
          Affects Version/s 1.7.01 [ 10090 ]
          jmd86 Janice Donahoe made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          People

            mem61 Mike Mendis
            melek Melek Somai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: