Error al instalar Kolla 3.4.1

Estimados, estamos realizando una nueva instalación del sistema Kolla y al intentar instalar la base de datos nos da el siguiente error:

ERROR: problemas ejecutando el cambio 319.

SQLSTATE[42601]: Syntax error: 7 ERROR: error de sintaxis en o cerca de «‘SELECT sfh.habilitacion, sfh.formulario_habilitado, sfh.nombre, sfhd.formulario_habilitado_detalle, sfhd.encuesta, sfhd.elemento, sfhd.orden as encuesta_orden, sed.encuesta_definicion, sed.bloque, sb.orden as bloque_orden, sed.pregunta, sed.orden as pregunta_orden, case when (componente = ‘‘check’’ OR componente = ‘‘list’’) then sp.nombre || ‘’ - Opción: ‘’ || ta.’» LINE 1: EXECUTE ‘SELECT ^ QUERY: EXECUTE ‘SELECT sfh.habilitacion, sfh.formulario_habilitado, sfh.nombre, sfhd.formulario_habilitado_detalle, sfhd.encuesta, sfhd.elemento, sfhd.orden as encuesta_orden, sed.encuesta_definicion, sed.bloque, sb.orden as bloque_orden, sed.pregunta, sed.orden as pregunta_orden, case when (componente = ‘‘check’’ OR componente = ‘‘list’’) then sp.nombre || ‘’ - Opción: ‘’ || ta.’ || $1 || ’ else sp.nombre::text end as pregunta_nombre, scp.numero as componente_numero, scp.componente as componente, case when (componente = ‘‘check’’ OR componente = ‘‘list’’) then ‘‘si’’ else ‘‘no’’ end as opciones_multiples, ’ || $2 || ’ as respuesta_codigo, sr.valor_tabulado, spr.orden as respuesta_orden FROM sge_formulario_habilitado sfh INNER JOIN sge_formulario_habilitado_detalle sfhd ON (sfhd.formulario_habilitado = sfh.formulario_habilitado) INNER JOIN sge_encuesta_definicion sed ON (sfhd.encuesta = sed.encuesta) INNER JOIN sge_bloque sb ON (sed.bloque = sb.bloque) INNER JOIN sge_pregunta sp ON (sed.pregunta = sp.pregunta) INNER JOIN sge_componente_pregunta scp ON (scp.numero = sp.componente_numero) LEFT JOIN sge_pregunta_respuesta spr ON ( CASE WHEN (scp.componente = ‘‘check’’ OR scp.componente = ‘‘list’’) THEN sp.pregunta ELSE NULL END = spr.pregunta) LEFT JOIN sge_respuesta sr ON (spr.respuesta = sr.respuesta) LEFT JOIN ’ || $3 || ’ ta ON TRUE WHERE sfh.formulario_habilitado = ’ || $4 || ’ and (sp.tabla_asociada = ‘’’ || $5 || ‘’') and (componente != ‘‘label’’); ’ CONTEXT: SQL statement in PL/PgSQL function “preguntas_formulario_habilitado” near line 100

A alguno le ha pasado y logró resolverlo?

Muchas gracias.

PD: Adjunto imagen con error.


error kolla.jpg

error kolla.png

Hola Claudio, ¿qué versión de postgres están utilizando?

Saludos.