summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWes Morgan <wmorgan@ffpir.org>2008-02-22 23:02:48 +0000
committerWes Morgan <wmorgan@ffpir.org>2008-02-22 23:02:48 +0000
commit772d96847acaf7f9e62787548d543fc3f0262991 (patch)
tree83b245c4ed3620a5b87f2bcbe5a91f17aa2bb607
parent6544d9624d72cfba3746a8b0588fcbb36223499d (diff)
downloadphp-openid-772d96847acaf7f9e62787548d543fc3f0262991.zip
php-openid-772d96847acaf7f9e62787548d543fc3f0262991.tar.gz
php-openid-772d96847acaf7f9e62787548d543fc3f0262991.tar.bz2
[project @ add_field_names_to_set_assoc_in_mysqlstore]
-rw-r--r--Auth/OpenID/MySQLStore.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Auth/OpenID/MySQLStore.php b/Auth/OpenID/MySQLStore.php
index e87773d..8ae32b2 100644
--- a/Auth/OpenID/MySQLStore.php
+++ b/Auth/OpenID/MySQLStore.php
@@ -42,7 +42,8 @@ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore {
") ENGINE=InnoDB";
$this->sql['set_assoc'] =
- "REPLACE INTO %s VALUES (?, ?, !, ?, ?, ?)";
+ "REPLACE INTO %s (server_url, handle, secret, issued,\n".
+ " lifetime, assoc_type) VALUES (?, ?, !, ?, ?, ?)";
$this->sql['get_assocs'] =
"SELECT handle, secret, issued, lifetime, assoc_type FROM %s ".