Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-10252

Processor PutDatabaseRecord generating invalid SQL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.16.3
    • 1.17.0
    • Extensions
    • None

    Description

      Processor PutDatabaseRecord is generating invalid SQL statement when UPDATE statement type for ORACLE.

      It seems lack of WHERE keyword.

       

      I'm getting this SQL:

      UPDATE "Z6RI_USUARIO_GRUPO_PERFIL"SET "USUARIO_NOME" = ?, "GRUPO_NOME" = ?, "USUARIO_GRUPO_PERFIL_NOME" = ?, "USUARIO_GRUPO_DATAEXPIRACAO" = ?, "PERFIL_CODIGO" = ?"GRUPO_CODIGO" = ? AND "USUARIO_CODIGO" = ?

      Should be:

      UPDATE "Z6RI_USUARIO_GRUPO_PERFIL"SET "USUARIO_NOME" = ?, "GRUPO_NOME" = ?, "USUARIO_GRUPO_PERFIL_NOME" = ?, "USUARIO_GRUPO_DATAEXPIRACAO" = ?, "PERFIL_CODIGO" = ? WHERE "GRUPO_CODIGO" = ? AND "USUARIO_CODIGO" = ?

      Attachments

        Issue Links

          Activity

            People

              emfontes Eduardo Mota Fontes
              emfontes Eduardo Mota Fontes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m