Skip to content

Commit

Permalink
Merge pull request #23 from gjsstigter/Patch-issue-22
Browse files Browse the repository at this point in the history
Resolved issue mentioned in Issue 22
  • Loading branch information
arm4b authored Feb 9, 2023
2 parents cfd991c + c70d0b8 commit ceecb38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Changelog
# 1.0.1

- Bugfix for escape_string not being a function on MySQLdb but on MySQLdb._mysql

# 1.0.0

* Drop Python 2.7 support
Expand Down
4 changes: 3 additions & 1 deletion actions/lib/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ def manual_conn(self, host, user, passwd, db,

def _escape_string(self, item):
return six.ensure_str(
MySQLdb.escape_string(unicode(item).encode('utf-8'))) # pylint: disable=no-member
MySQLdb._mysql.escape_string(
unicode(item).encode('utf-8')
)) # pylint: disable=no-member

def _list_to_string(self, data, quotes=True):
output = ""
Expand Down
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description : Mysql integration pack
keywords :
- mysql
- database
version: 1.0.0
version: 1.0.1
author : st2-dev
email : [email protected]
contributors:
Expand Down

0 comments on commit ceecb38

Please sign in to comment.