diff options
author | tailor <cygnus@janrain.com> | 2006-08-29 18:46:57 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-08-29 18:46:57 +0000 |
commit | fb58e87397c1d4009c83664cc58a2c1b6ef75441 (patch) | |
tree | fae993d12e0dc6ff465e210adc4894fa0cccb91a /Auth/OpenID/SQLiteStore.php | |
parent | b4cdf8b459fc274ebf5f8cce627ec6bfcb6898a7 (diff) | |
download | php-openid-fb58e87397c1d4009c83664cc58a2c1b6ef75441.zip php-openid-fb58e87397c1d4009c83664cc58a2c1b6ef75441.tar.gz php-openid-fb58e87397c1d4009c83664cc58a2c1b6ef75441.tar.bz2 |
[project @ Fixes to SQLiteStore]
Diffstat (limited to 'Auth/OpenID/SQLiteStore.php')
-rw-r--r-- | Auth/OpenID/SQLiteStore.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/SQLiteStore.php b/Auth/OpenID/SQLiteStore.php index 168f3fa..18da516 100644 --- a/Auth/OpenID/SQLiteStore.php +++ b/Auth/OpenID/SQLiteStore.php @@ -21,7 +21,7 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore { { $this->sql['nonce_table'] = "CREATE TABLE %s (server_url VARCHAR(2047), timestamp INTEGER, ". - "salt CHAR(40), UNIQUE (server_url, timestamp, salt)"; + "salt CHAR(40), UNIQUE (server_url, timestamp, salt))"; $this->sql['assoc_table'] = "CREATE TABLE %s (server_url VARCHAR(2047), handle VARCHAR(255), ". @@ -53,7 +53,7 @@ class Auth_OpenID_SQLiteStore extends Auth_OpenID_SQLStore { "DELETE FROM %s WHERE server_url = ? AND handle = ?"; $this->sql['add_nonce'] = - "INSERT OR REPLACE INTO %s (nonce, expires) VALUES (?, ?)"; + "INSERT INTO %s (server_url, timestamp, salt) VALUES (?, ?, ?)"; $this->sql['get_nonce'] = "SELECT * FROM %s WHERE nonce = ?"; |