You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Eduardo Mota Fontes (Jira)" <ji...@apache.org> on 2022/07/20 11:39:00 UTC

[jira] [Created] (NIFI-10252) Processor PutDatabaseRecord generating invalid SQL

Eduardo Mota Fontes created NIFI-10252:
------------------------------------------

             Summary: Processor PutDatabaseRecord generating invalid SQL
                 Key: NIFI-10252
                 URL: https://issues.apache.org/jira/browse/NIFI-10252
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.16.3
            Reporter: Eduardo Mota Fontes


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

It seems lack of WHERE keyword.

 

I'm getting this SQL:
{code: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" = ?{code}
Should be:
{code:sql}
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" = ?{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)