From b21c8165a862ffcba01da9748fa7648a4c790b7b Mon Sep 17 00:00:00 2001 From: Nikolay Labinskiy Date: Tue, 13 Jan 2015 19:39:45 +0200 Subject: [PATCH 1/2] fix SQL: table names Table name for sessions should be the same for all examples (see symfony config above with `sessions` table name) --- cookbook/configuration/pdo_session_storage.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbook/configuration/pdo_session_storage.rst b/cookbook/configuration/pdo_session_storage.rst index 774ebe0478e..3408a99f1d8 100644 --- a/cookbook/configuration/pdo_session_storage.rst +++ b/cookbook/configuration/pdo_session_storage.rst @@ -229,7 +229,7 @@ following (MySQL): .. code-block:: sql - CREATE TABLE `session` ( + CREATE TABLE `sessions` ( `sess_id` VARBINARY(128) NOT NULL PRIMARY KEY, `sess_data` BLOB NOT NULL, `sess_time` INTEGER UNSIGNED NOT NULL, @@ -243,7 +243,7 @@ For PostgreSQL, the statement should look like this: .. code-block:: sql - CREATE TABLE session ( + CREATE TABLE sessions ( sess_id VARCHAR(128) NOT NULL PRIMARY KEY, sess_data BYTEA NOT NULL, sess_time INTEGER NOT NULL, @@ -257,7 +257,7 @@ For MSSQL, the statement might look like the following: .. code-block:: sql - CREATE TABLE [dbo].[session]( + CREATE TABLE [dbo].[sessions]( [sess_id] [nvarchar](255) NOT NULL, [sess_data] [ntext] NOT NULL, [sess_time] [int] NOT NULL, From f17adf4871f9ced2c4f3bd51ce4d02e8f8c83adc Mon Sep 17 00:00:00 2001 From: Nikolay Labinskiy Date: Tue, 13 Jan 2015 21:11:22 +0200 Subject: [PATCH 2/2] default value for the db_table option --- cookbook/configuration/pdo_session_storage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/configuration/pdo_session_storage.rst b/cookbook/configuration/pdo_session_storage.rst index 3408a99f1d8..9baa5fa9fb7 100644 --- a/cookbook/configuration/pdo_session_storage.rst +++ b/cookbook/configuration/pdo_session_storage.rst @@ -150,7 +150,7 @@ a second array argument to ``PdoSessionHandler``: The following things can be configured: -* ``db_table``: (default ``session``) The name of the session table in your +* ``db_table``: (default ``sessions``) The name of the session table in your database; * ``db_id_col``: (default ``sess_id``) The name of the id column in your session table (VARCHAR(128));