Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote committed Aug 8, 2023
1 parent 95c975c commit 54ecb4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/engines/goinception.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import re
import traceback
import MySQLdb
import pymysql
import simplejson as json

from common.config import SysConfig
Expand Down Expand Up @@ -65,7 +66,7 @@ def get_backup_connection():

def escape_string(self, value: str) -> str:
"""字符串参数转义"""
return MySQLdb.escape_string(value).decode("utf-8")
return pymysql.escape_string(value)

def execute_check(self, instance=None, db_name=None, sql=""):
"""inception check"""
Expand Down

0 comments on commit 54ecb4d

Please sign in to comment.