LimeSurvey/LimeSurvey — pull request #45 by geelweb (2012-09-26 10:59:48+00:00)
Title: Postgresql lastinsertid

Hi,

a little patch to improve PostgreSQL compatibility, PDO::lastInsertID() requires the name parameter when used with PDO_PGSQL so I replaced calls like Yiii::app()->db->getLastInsertID(); by Yii::app()->db->getCommandBuilder()->getLastInsertID('{{tablename}}'

I also updated the user_groups insert query in User_groups::addGroup() method to remove the "`" character around the column names, not PostgreSQL compliant