title: python MySQLDb insert with prepared Statements
body: <p>I have a table with fields</p>
  
  <pre><code>TABLE_PASTE(
        user_text longtext NOT NULL,
        number integer NOT NULL
   )
  </code></pre>
  
  <p>I am trying to insert a row in this table <code>TABLE_PASTE</code> from python using MySQLDb driver.</p>
  
  <pre><code>text="large_text"
  value = 1
  cursor.execute("Update TABLE_PASTE set user_text = ? where number = ?",(text,value))
  </code></pre>
  
  <p>Am getting this error</p>
  
  <pre><code>query = query % db.literal(args)
  TypeError: not all arguments converted during string formatting
  </code></pre>