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

fix: pin pymysql to avoid breaking behaviour (backport #20475) #20477

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Mar 28, 2023

This is an automatic backport of pull request #20476 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com

```
  File "/home/ankush/benches/develop/apps/frappe/frappe/database/database.py", line 920, in get_default
    d = self.get_defaults(key, parent)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankush/benches/develop/apps/frappe/frappe/database/database.py", line 936, in get_defaults
    defaults = frappe.defaults.get_defaults_for(parent)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankush/benches/develop/apps/frappe/frappe/defaults.py", line 222, in get_defaults_for
    .run(as_dict=True)
     ^^^^^^^^^^^^^^^^^
  File "/home/ankush/benches/develop/apps/frappe/frappe/query_builder/utils.py", line 85, in execute_query
    return frappe.db.sql(query, params, *args, **kwargs)  # nosemgrep
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ankush/benches/develop/apps/frappe/frappe/database/database.py", line 264, in sql
    self.log_query(query, values, debug, explain)
  File "/home/ankush/benches/develop/apps/frappe/frappe/database/mariadb/database.py", line 203, in log_query
    self.last_query = query = self._cursor._last_executed
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Cursor' object has no attribute '_last_executed'. Did you mean: '_check_executed'?
```

(cherry picked from commit 229dcb3)

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 7cc358c)
@mergify mergify bot requested review from a team and phot0n and removed request for a team March 28, 2023 06:43
@ankush ankush changed the title fix: pin pymysql to avoid breaking behaviour (backport #20475) (backport #20476) fix: pin pymysql to avoid breaking behaviour (backport #20475) Mar 28, 2023
@ankush ankush merged commit 26867dc into version-14 Mar 28, 2023
@ankush ankush deleted the mergify/bp/version-14/pr-20476 branch March 28, 2023 06:44
frappe-pr-bot pushed a commit that referenced this pull request Mar 28, 2023
## [14.29.2](v14.29.1...v14.29.2) (2023-03-28)

### Bug Fixes

* pin pymysql to avoid breaking behaviour ([#20475](#20475)) ([#20476](#20476)) ([#20477](#20477)) ([26867dc](26867dc))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.29.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants