diff --git a/phpgwapi/inc/class.schema_proc_pgsql.inc.php b/phpgwapi/inc/class.schema_proc_pgsql.inc.php index 8b8bf65a04..474e28210d 100644 --- a/phpgwapi/inc/class.schema_proc_pgsql.inc.php +++ b/phpgwapi/inc/class.schema_proc_pgsql.inc.php @@ -565,7 +565,7 @@ $oProc->m_odb->query($query); $this->_GetColumns($oProc, $sTableName . '_tmp', $sColumns, $sColumnName); - $query = "INSERT INTO $sTableName SELECT $sColumns FROM $sTableName" . '_tmp'; + $query = "INSERT INTO $sTableName($sColumns) SELECT $sColumns FROM $sTableName" . '_tmp'; $bRet = !!($oProc->m_odb->query($query)); return ($bRet && $this->DropTable($oProc, $aTables, $sTableName . '_tmp')); }