Skip to content
Snippets Groups Projects
Commit ecb7d77f authored by Olav Morken's avatar Olav Morken
Browse files

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
parent 8094d30f
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ class SimpleSAML_Consent_Storage { ...@@ -86,7 +86,7 @@ class SimpleSAML_Consent_Storage {
/** /**
* insert new entry into 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)); $stmt->execute(array($user_id, $targeted_id, $attribute_hash));
$rows = $stmt->rowCount(); $rows = $stmt->rowCount();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment