Browse files

...And now it works

  • Loading branch information...
1 parent 8809fee commit 28ba0d55cc61de9492d58fc2b612df6601358e2e paca70 committed Apr 28, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
2 lib/datalib.php
@@ -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 {

0 comments on commit 28ba0d5

Please sign in to comment.