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

Duplicando chave primaria. #62

Open
bjverde opened this issue Apr 5, 2019 · 1 comment
Open

Duplicando chave primaria. #62

bjverde opened this issue Apr 5, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@bjverde
Copy link
Owner

bjverde commented Apr 5, 2019

Em algumas situações a chave primaria é criadas duas vezes no form, classe e dao.

O erro foi visto no SQL Server

@bjverde bjverde added the bug Something isn't working label Apr 5, 2019
@bjverde
Copy link
Owner Author

bjverde commented Oct 7, 2019

No Sql Server o Bug acontece quando um campo PK ou FK tem outras constraint geralmente um Unique

  1. TGeneratorHelper->loadFieldsTablesSelected (linha 447) chama
  2. (base) TDAO->loadFieldsOneTableFromDatabase (linha 1944)

Uma possível solução depois da linha 459 $listFieldsTable = $dao->loadFieldsOneTableFromDatabase(); é incluir um metodo que vai eliminar as linhas repitidas quando já tem uma PK ou FK

bjverde added a commit that referenced this issue Oct 27, 2019
bjverde added a commit that referenced this issue Oct 27, 2019
bjverde added a commit that referenced this issue Oct 27, 2019
bjverde added a commit that referenced this issue Oct 31, 2019
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

1 participant