Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

storage session pdo for postgres fix#24457

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

@mxp100
Copy link
Contributor

QA
Branch?2.6
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#24456
LicenseMIT
Doc PR

Fixed issue, this error in 2.6+ versions


// delete the session records that have expired
$sql ="DELETE FROM$this->table WHERE$this->lifetimeCol+$this->timeCol < :time";
$sql ="DELETE FROM$this->table WHERE$this->lifetimeCol< :time -$this->timeCol";
Copy link
Contributor

Choose a reason for hiding this comment

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

isn't is the same?
a + b < c ===a < c - b

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

no, in postgres
a and b - integer type (32 bit)
a+b > integer (2^32/2) - it's error
a-b <= integer and accepted by postgres

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

this problem in postgres only

Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to use unsigned types? or larger types e.g. long (64 bits instead of 32)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Creating tables is in the same package. But to increase the amount of data due to improper use is incorrect

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Moreover, the sessional table contains a lot of records, and the losses will be large

=========

* PdoSessionHandler changes
- bugfix timestamp integer out of range in Postgres

Choose a reason for hiding this comment

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

this should be removed, we dont alter this file for bug fixes

@nicolas-grekasnicolas-grekas changed the base branch from2.6 to2.7October 8, 2017 07:52
@nicolas-grekasnicolas-grekas changed the base branch from2.7 to2.6October 8, 2017 07:52
nicolas-grekas
nicolas-grekas previously approved these changesOct 12, 2017
@mxp100
Copy link
ContributorAuthor

tests red for old version of symfony(((

@Tobion
Copy link
Contributor

Symfony 2.6 is not maintained anymore. Should be rebaed against 2.7

@mxp100mxp100 mentioned this pull requestOct 16, 2017
@mxp100
Copy link
ContributorAuthor

#24579

@mxp100
Copy link
ContributorAuthor

please review this pull request, rebase from 2.6 to 2.7 to long time...

@fabpotfabpot closed thisOct 16, 2017
@mxp100mxp100 deleted the bugfix/session-pdo-storage-postgres branchOctober 16, 2017 17:48
fabpot added a commit that referenced this pull requestOct 16, 2017
This PR was merged into the 2.7 branch.Discussion----------pdo session fix| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#24456| License       | MIT| Doc PR        |Fix PDO session timestamp out of range for postgres. (branch from 2.7)P.S. please delete this pull#24457Commits-------56b29a7 pdo session fix
symfony-splitter pushed a commit to symfony/http-foundation that referenced this pull requestOct 16, 2017
This PR was merged into the 2.7 branch.Discussion----------pdo session fix| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | #24456| License       | MIT| Doc PR        |Fix PDO session timestamp out of range for postgres. (branch from 2.7)P.S. please delete this pullsymfony/symfony#24457Commits-------56b29a754c pdo session fix
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

+1 more reviewer

@e-moee-moee-moe left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

7 participants

@mxp100@Tobion@nicolas-grekas@e-moe@fabpot@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp