Skip to content

problem with replace_query on multil line #1970

Closed

Description

@pcouas

Hello

this first REPLACE_QUERY is bad and ora2pg don't use it

REPLACE_QUERY TSTPCSA[
SELECT
e.employee_id,
e.first_name AS prenom,
e.last_name,
CASE
WHEN e.status = 'A' THEN 'ACTIVE'
WHEN e.status = 'I' THEN 'INACTIVE'
ELSE 'UNKNOWN'
END AS status,
e.salary
FROM SCGP.TSTPCSA e
]
But this REPLACE_QUERY is good
REPLACE_QUERY TSTPCSA[SELECT e.employee_id,e.first_name AS prenom,e.last_name,CASE WHEN e.status = 'A' THEN 'ACTIVE' WHEN e.status = 'I' THEN 'INACTIVE' ELSE 'UNKNOWN' END AS status, e.salary FROM SCGP.TSTPCSA e]

This second is written on same line, there is no CRLF in conf file
Regards

Activity

  1. darold commented on Sep 27, 2026

    @darold
    Owner

    It is not possible to set any configuration setting values on multilines, you must use single line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions