[firebase-br] Invalid request BLR at offset 238 context already in use (BLR error)

Gugui suporte em emar.com.br
Qui Maio 9 11:15:16 -03 2013


Olá pessoal, alguem me ajuda com essa view ?

se eu tiro o
         WHEN 'V' then
         case when exists(select 1 from FORMAPGTO f WHERE F.CKB1 = 'T'
         and f.IDFORMAPGTO = a.idformapgto)
         then '<SIM>' ELSE '<NÃO>' END

aí cria a View

CREATE VIEW temp ( simnao )
AS
select
CASE (SELECT FIRST 1 P.TIPO FROM PEDIDO P WHERE P.IDPEDIDO = A.IDPEDIDO)
     WHEN 'P' THEN
         case when exists(select 1 from CLIENTE_FORMAPGTO cf
         inner join pedido p on p.idcliente = cf.IDCLIENTE
         where p.idpedido = a.idpedido and cf.IDFORMAPGTO = a.idformapgto)
         then '<SIM>' ELSE '<NÃO>' END
     WHEN 'V' then
         case when exists(select 1 from FORMAPGTO f WHERE F.CKB1 = 'T'
         and f.IDFORMAPGTO = a.idformapgto)
         then '<SIM>' ELSE '<NÃO>' END
     ELSE
        NULL
     END

FROM PRESTACAO_PEDIDO a;

grato qq ajuda





Mais detalhes sobre a lista de discussão lista