Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problemas para executar o bairros.sql #1

Open
RonaldTheodoro opened this issue Mar 25, 2018 · 1 comment
Open

Problemas para executar o bairros.sql #1

RonaldTheodoro opened this issue Mar 25, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@RonaldTheodoro
Copy link
Owner

RonaldTheodoro commented Mar 25, 2018

Ao executar o arquivo bairros.sql esta aparecendo o erro abaixo

NOT NULL constraint failed: bairros.cidade: INSERT INTO bairros(nome, cidade) VALUES ("Alto do Cruzeiro", (SELECT c.id_cidade FROM cidades c WHERE c.nome = "Arapiraca" AND c.estado = (SELECT e.id_estado FROM estados e WHERE e.uf = 'AL'))), ("Baixa Grande", (SELECT c.id_cidade FROM cidades c WHERE c.nome = "Arapiraca" AND c.estado = (SELECT e.id_estado FROM estados e WHERE e.uf = 'AL'))), ("Baixão", (SELECT c.id_cidade FROM cidades c WHERE c.nome = "Arapiraca" AND c.estado = (SELECT e.id_estado FROM estados e WHERE e.uf = 'AL'))), ...

@RonaldTheodoro RonaldTheodoro added the bug Something isn't working label Mar 25, 2018
@gohubr
Copy link

gohubr commented Jan 8, 2022

Identifiquei a correção. Faça um replace nas seguintes strings:

Buscar " Ribeira e Sete Fortes" e substituir por "Ribeira e Sete Fortes"
Buscar "Ubatuba;Flamengo/Praias" e substituir por "Ubatuba"
Buscar "Ubatuba;Ubatuba" e substituir por "Ubatuba"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants