Skip to content

Commit

Permalink
fix SQL: table names
Browse files Browse the repository at this point in the history
  • Loading branch information
e-moe authored and wouterj committed Jan 16, 2015
1 parent ca54d55 commit ecc18e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cookbook/configuration/pdo_session_storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit ecc18e2

Please sign in to comment.