Skip to content

fix SQL: table names #4824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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