Nette\Database\Table\Selection::insert() to PostgreSQL table with PK without sequence
Notice: This thread is very old.
- carlos
- Member | 4
Hi,
I have a problem with inserting to table with primary key without sequence. Nette (PDO) not throw exception, bud in SQL log is
PostgreSQL 9.6.1, PHP 5.6, Nette 2.4
on every INSERT called query like this
but LASTAVAL() can be called only after update sequence
Its bug or bad using?
I tried fix it
instead of
to block call lastInsettId().
Thanks