|
When parsing multibyte strings, the offsets for placeholder are delivered as byte position instead of character position.
How to repeat:
import mariadb
|
|
c=mariadb.connect(db="test")
|
|
cursor=c.cursor()
|
cursor.execute("SELECT `Unitéble2`.`測試` AS `Unitéble2_測試`, `Unitéble2`.`測試_2` AS `Unitéble2_測試_2`, `Unitéble2`.`méil` AS `Unitéble2_méil` FROM `Unitéble2` WHERE ? = `Unitéble2`.`測試`",(1,))
|
Error:
mariadb.ProgrammingError: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '? = `Unitéble2`.`測試`2' at line 1
|