Skip to content

Conversation

@michalsn
Copy link
Member

Description
This PR fixes a bug in the session table schema for mysqli driver.

The timestamp field name in the session table is a reserved keyword in MySQL and MariaDB. Quoting it ensures proper creation and operation of the table when creating the table via mysqli.

Fixes #9796

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value (without duplication)
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Copy link
Contributor

@neznaika0 neznaika0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In most cases, I put quotes for the names of the fields/tables. To avoid such situations.

@michalsn michalsn merged commit 62ca979 into codeigniter4:develop Nov 21, 2025
50 checks passed
@michalsn
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: DB Session migration generator creates invalid table structure - broken timestamp field syntax

4 participants