2009-11-24から1日間の記事一覧
MySQLdbでcursor.executeをしたときに%sの可変部分をどう処理しているのか調べた。 どうも、connection.literalというメソッドがあるようだ。 [MySQL-python-1.2.3c1/MySQLdb/cursors.py] def execute(self, query, args=None): ''' 中略 ''' if args is not…
MySQLdbでcursor.executeをしたときに%sの可変部分をどう処理しているのか調べた。 どうも、connection.literalというメソッドがあるようだ。 [MySQL-python-1.2.3c1/MySQLdb/cursors.py] def execute(self, query, args=None): ''' 中略 ''' if args is not…