Skip to content

Commit

Permalink
correção erro no pesquisador de cidades
Browse files Browse the repository at this point in the history
  • Loading branch information
stdmedoth committed Jun 21, 2021
1 parent 83cf1fc commit 5b1964e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pesquisadores/cidades.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ int entry_cidd_pesquisa(GtkEntry *widget, GtkTreeView *treeview)

switch(tipo_psq){
case 0:
sprintf(query,"select id_cidade, descricao, uf, codigo_ibge, ddd from cidade where descricao like '%c%s%c' limit 20",37,entrada,37);
sprintf(query,"select code, descricao, uf, codigo_ibge, ddd from cidade where descricao like '%c%s%c' limit 20",37,entrada,37);
break;
case 1:
sprintf(query,"select id_cidade, descricao, uf, codigo_ibge, ddd from cidade where UF like '%c%s%c' limit 20",37,entrada,37);
sprintf(query,"select code, descricao, uf, codigo_ibge, ddd from cidade where UF like '%c%s%c' limit 20",37,entrada,37);
break;
case 2:
sprintf(query,"select id_cidade, descricao, uf, codigo_ibge, ddd from cidade where DDD like '%c%s%c' limit 20",37,entrada,37);
sprintf(query,"select code, descricao, uf, codigo_ibge, ddd from cidade where DDD like '%c%s%c' limit 20",37,entrada,37);
break;
}

Expand Down

0 comments on commit 5b1964e

Please sign in to comment.