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

autoincrement pgsql #101

Open
flesoft opened this issue May 24, 2020 · 3 comments
Open

autoincrement pgsql #101

flesoft opened this issue May 24, 2020 · 3 comments

Comments

@flesoft
Copy link

flesoft commented May 24, 2020

Php: 7.4-fpm
KumbiaPHP: 1.1.1
pgsql: postgres:11.5-alpine
servidor: nginx

cuando quiero usar el codigo con el LiteRecord
$class->create($dataSave);
tengo un error:
{"error":"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column \"id\" violates not-null constraint\nDETAIL: Failing row contains (null, 01, Amazonas, 01, Chachapoyas, 11, Levanto, 2020-05-24 00:58:54, null)."}
adjunto imagen de la tabla.
imagen
el error ocurre porque LiteRecord le pone NULL a la ID que es autoincrement

@joanhey
Copy link
Member

joanhey commented May 24, 2020

Estamos limpiando el create y update.
En breve estará

@flesoft
Copy link
Author

flesoft commented Jul 1, 2020

@joanhey aun tengo el problema alguna solucion que recomiende.

@flesoft
Copy link
Author

flesoft commented Jul 1, 2020

temporalmente e realizado este cambio:
imagen
imagen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants