...And now it works

This commit is contained in:
paca70 2003-04-28 15:24:13 +00:00
parent 8809fee944
commit 28ba0d55cc

View File

@ -626,7 +626,7 @@ function insert_record($table, $dataobject, $returnid=true) {
if ($CFG->dbtype == "postgres7" and isset($pkey)){
$oid = $db->Insert_ID();
if ($rs = $db->Execute("SELECT $pkey FROM $CFG->prefix$table WHERE 'oid' = $oid")) {
if ($rs = $db->Execute("SELECT $pkey FROM $CFG->prefix$table WHERE oid = $oid")) {
if ($rs->RecordCount() == 1) {
return $rs->fields[0];
} else {