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

Failed insert return when not using serial #1

Open
YesYesTreezy opened this issue Oct 27, 2021 · 0 comments
Open

Failed insert return when not using serial #1

YesYesTreezy opened this issue Oct 27, 2021 · 0 comments

Comments

@YesYesTreezy
Copy link

Hi,
i use uuid as primary keys in my table and on insert i get this error

Undefined offset: 0 on line 333 in file simplon\postgres\src\Postgres.php

This code fix the issue:

$responses[] = $lastInsert !== false && isset($lastInsert[0]) ? (int)$lastInsert[0] : true;

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

1 participant