diff --git a/dblayeroo.php b/dblayeroo.php index 9447287..d0349d2 100644 --- a/dblayeroo.php +++ b/dblayeroo.php @@ -2767,6 +2767,8 @@ class dblayeroo $sql = $this->createRequest (); if ($this->driver === "pgsql" && $this->command === "INSERT") { + // PgSQL doesn't support the lastInsertId if there is no autoincrement + // field. Will return the primary key $sql .= " RETURNING ".$this->sep.$this->primary.$this->sep; } $this->debugLog ("Entering prepareRequest (XXX, ",false,")");