Skip to content

Failed insert return when not using serial #1

@YesYesTreezy

Description

@YesYesTreezy

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions