summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-01-19 21:08:14 +0000
committertailor <cygnus@janrain.com>2006-01-19 21:08:14 +0000
commit78e880280a9e8aaf672499dbb75585964d362d37 (patch)
tree907e2a024424452c3d4d5f1407042a4424b334d7 /Auth
parent8f528cf6e253ad3b963f8ed15cadacaa5f669d12 (diff)
downloadphp-openid-78e880280a9e8aaf672499dbb75585964d362d37.zip
php-openid-78e880280a9e8aaf672499dbb75585964d362d37.tar.gz
php-openid-78e880280a9e8aaf672499dbb75585964d362d37.tar.bz2
[project @ Fixed column types for MySQL store]
Diffstat (limited to 'Auth')
-rw-r--r--Auth/OpenID/Store/SQLStore.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Auth/OpenID/Store/SQLStore.php b/Auth/OpenID/Store/SQLStore.php
index 1fcaca2..1e0cd6a 100644
--- a/Auth/OpenID/Store/SQLStore.php
+++ b/Auth/OpenID/Store/SQLStore.php
@@ -652,9 +652,9 @@ class Auth_OpenID_MySQLStore extends Auth_OpenID_SQLStore {
"expires INTEGER) TYPE=InnoDB";
$this->sql['assoc_table'] =
- "CREATE TABLE %s (server_url VARCHAR(255), handle VARCHAR(255), ".
+ "CREATE TABLE %s (server_url BLOB, handle VARCHAR(255), ".
"secret BLOB, issued INTEGER, lifetime INTEGER, ".
- "assoc_type VARCHAR(64), PRIMARY KEY (server_url, handle)) ".
+ "assoc_type VARCHAR(64), PRIMARY KEY (server_url(255), handle)) ".
"TYPE=InnoDB";
$this->sql['settings_table'] =