From ecb7d77fd7b562f062ddcbfbdd091b3f4f0c8f6b Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 1 Jul 2008 09:26:09 +0000 Subject: [PATCH] Consent_Storage: Change "REPLACE INTO" to "INSERT INTO" for postgresql compatibility. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@733 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Consent/Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SimpleSAML/Consent/Storage.php b/lib/SimpleSAML/Consent/Storage.php index 23c8a5077..64d805f2a 100644 --- a/lib/SimpleSAML/Consent/Storage.php +++ b/lib/SimpleSAML/Consent/Storage.php @@ -86,7 +86,7 @@ class SimpleSAML_Consent_Storage { /** * insert new entry into consent storage. */ - $stmt = $this->dbh->prepare("REPLACE INTO consent VALUES (?,?,?,NOW(),NOW())"); + $stmt = $this->dbh->prepare("INSERT INTO consent VALUES (?,?,?,NOW(),NOW())"); $stmt->execute(array($user_id, $targeted_id, $attribute_hash)); $rows = $stmt->rowCount(); -- GitLab