Permalink
Browse files

minor #4824 fix SQL: table names (e-moe)

This PR was squashed before being merged into the 2.6 branch (closes #4824).

Discussion
----------

fix SQL: table names

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | Symfony 2.x
| Fixed tickets | #4794

Table name for sessions should be the same for all examples (see symfony config above with `sessions` table name)

Commits
-------

ecc18e2 fix SQL: table names
  • Loading branch information...
wouterj committed Jan 16, 2015
2 parents f7d99dd + ecc18e2 commit 467c538dfe2ccdb434084b67e52cd1db048c9167
Showing with 4 additions and 4 deletions.
  1. +4 −4 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));
@@ -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,

0 comments on commit 467c538

Please sign in to comment.