Erro ao navegar em indicadores de tarefa de projeto...
9 de Junho de 2011, 10:28
, por Desconhecido
|
Ninguém seguindo este artigo por enquanto.
Prezado,
Criei uma tarefa em um projeto, com uns 50 indicadores, na versão DEMO, utilizada no workshop da CODEVASF. Ao utilizar na tela de detalhes da tarefa, na aba de indicadores, tentei navegar para a segunda página de indicadores e a seguinte mensagem foi exibida:
"
ERRO: /srv/www/gpweb.codevasf.gov.br/demo/classes/BDConsulta.class.php(570) : SQL falhou(select cia_nome, CONCAT_WS(' ',contato_posto,contato_nomeguerra) usuario_nome,projeto_data_fim, projeto_data_inicio, projeto_nome, projeto_cor, projeto_descricao,projeto_percentagem FROM (projetos AS projetos) INNER JOIN `tarefas` AS t1 ON projetos.projeto_id = t1.tarefa_projeto INNER JOIN `cias` AS com ON cia_id = projeto_cia LEFT JOIN `usuarios` AS u ON usuario_id = projeto_responsavel LEFT JOIN `contatos` AS con ON contato_id = usuario_contato WHERE (projeto_id = AND t1.tarefa_id = t1.tarefa_superior) AND (projeto_id = 0)) - erro era: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t1.tarefa_id = t1.tarefa_superior) AND (projeto_id = 0)' at line 1
retorno:
0 /srv/www/gpweb.codevasf.gov.br/demo/classes/BDConsulta.class.php:570 dprint('/srv/www/gpweb.codevasf.gov.br/demo/classes/BDConsulta.class.php',570,0,'SQL falhou(select cia_nome, CONCAT_WS(\' \',contato_posto,contato_nomeguerra) usuario_nome,projeto_data_fim, projeto_data_inicio, projeto_nome, projeto_cor, projeto_descricao,projeto_percentagem FROM (projetos AS projetos) INNER JOIN `tarefas` AS t1 ON projetos.projeto_id = t1.tarefa_projeto INNER JOIN `cias` AS com ON cia_id = projeto_cia LEFT JOIN `usuarios` AS u ON usuario_id = projeto_responsavel LEFT JOIN `contatos` AS con ON contato_id = usuario_contato WHERE (projeto_id = AND t1.tarefa_id = t1.tarefa_superior) AND (projeto_id = 0)) - erro era: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'AND t1.tarefa_id = t1.tarefa_superior) AND (projeto_id = 0)\' at line 1')
1 /srv/www/gpweb.codevasf.gov.br/demo/classes/BDConsulta.class.php:681 exec(1)
2 /srv/www/gpweb.codevasf.gov.br/demo/modulos/tarefas/ver.php:161 carregarObjeto(NULL)
3 /srv/www/gpweb.codevasf.gov.br/demo/index.php:295 require('/srv/www/gpweb.codevasf.gov.br/demo/modulos/tarefas/ver.php')
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND t1.tarefa_id = t1.tarefa_superior) AND (projeto_id = 0)' at line
"
Autor: Marco Aurélio Santi Gatti
1Um comentário