Skip to content
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

Update Doctrine.php #34

Merged
merged 1 commit into from
Jul 30, 2020
Merged

Update Doctrine.php #34

merged 1 commit into from
Jul 30, 2020

Conversation

Dezzpil
Copy link
Contributor

@Dezzpil Dezzpil commented Jul 30, 2020

Для MySQL и PSQL генерируются немного разные запросы.
Для мускула генерируется запрос, который возвращает строку (привожу часть):

...
(`e`.`password` = MD5(CONCAT('5f22cfc9', `e`.`password_salt`)) AND `e`.`status` = 0 AND `e`.`deleted` = 0) AS `e__0`
...

Для постгреса же - логическое значение:

...
(e.password = MD5('5f22cfc9' || e.password_salt) AND e.status = 0 AND e.deleted = 0) AS e__0
...

Для  MySQL и PSQL генерируются немного разные запросы.
Для мускула генерируется запрос, который возвращает строку (привожу часть):
```
...
(`e`.`password` = MD5(CONCAT('5f22cfc9', `e`.`password_salt`)) AND `e`.`status` = 0 AND `e`.`deleted` = 0) AS `e__0`
...
```

Для постгреса же - логическое значение:
```
...
(e.password = MD5('5f22cfc9' || e.password_salt) AND e.status = 0 AND e.deleted = 0) AS e__0
...
```
@IlyaSerdyuk IlyaSerdyuk changed the base branch from master to 1.34 July 30, 2020 15:42
@IlyaSerdyuk IlyaSerdyuk merged commit 57daf17 into 1.34 Jul 30, 2020
@IlyaSerdyuk IlyaSerdyuk deleted the Dezzpil-patch-1 branch August 15, 2022 10:07
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.

2 participants