py3: _mysql.string_literal() returns bytes().
And _mysql/mysqldb API (_mysql.connection.query()) converts the query string to bytes() (additionally, cursor.execute(QUERY, ARGS) calls query() after converting everything to bytes() too). TODO: Instead of doing this ourself, should we use cursor.execute(QUERY, ARGS) which does conversion to bytes()? Performances?
Showing
Please register or sign in to comment