Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 Error on DM.pm | Erro em DB.pm

open
nobody
None
5
2004-07-09
2004-07-09
MeioLouko
No

Hi all,

I found an error in the DM.pm archive in line 224, "return
_select_hash("select groups.id, groups.description, count
(stations.id != '') from groups left join stations on
groups.id = stations.id_group group by groups.id,
groups.description");"

when I enter in the link Groups is generated the following
error:

Comando SQL : select groups.id, groups.description,
count(stations.id != '') from groups left join stations on
groups.id = stations.id_group group by groups.id,
groups.description

I decided this problem removing the following characters
of line 224: (!= '').

being

"return _select_hash("select groups.id,
groups.description, count(stations.id) from groups left
join stations on groups.id = stations.id_group group by
groups.id, groups.description");"

Thanks.

========================================

Olá a todos.

Encontrei um erro no arquivo DB.pm na linha 224, "return
_select_hash("select groups.id, groups.description, count
(stations.id != '') from groups left join stations on
groups.id = stations.id_group group by groups.id,
groups.description");"

Quando eu entro no link Grupo é gerado o seguinte erro:

Comando SQL : select groups.id, groups.description,
count(stations.id != '') from groups left join stations on
groups.id = stations.id_group group by groups.id,
groups.description

Eu resolvi este problema retirando os seguintes
caracteres da linha 224: (!= '').

Ficando assim:

"return _select_hash("select groups.id,
groups.description, count(stations.id) from groups left
join stations on groups.id = stations.id_group group by
groups.id, groups.description");"

Obrigado.

Discussion