bcosca/fatfree — pull request #156 by ikkez (2012-11-12 22:40:01+00:00)
Title: BugFix #124 pgsql lastInsertId

Sorry, i missed that `$this->pkeys` is an associative array. So `end($this->pkeys)` returns null instead of the field name. we need to get the array_keys first. Unfortunately chaining this in a single line with `end(array_keys($this->pkeys))` or `array_pop(array_keys($this->pkeys))` throws a 500 error "Only variables should be passed by reference". It works when using another temporarily variable in two lines.