<div dir="ltr"><div>No (lol). It returns a date as a string: "2012-12-12" for example.</div><div>Tom</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Dec 18, 2012 at 6:02 PM, Wayne Werner <span dir="ltr"><<a href="mailto:wayne@waynewerner.com" target="_blank">wayne@waynewerner.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, 18 Dec 2012, Tom Borkin wrote:<br>
<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi;<br>
I have this test code:<br>
 <br>
    if i_id == "1186":<br>
      sql = 'insert into interactions values(Null, %s, "Call Back", "%s")' % (i_id, date_plus_2)<br>
      cursor.execute(sql)<br>
      db.commit()<br>
      print sql<br>
It prints the sql statement, but it doesn't execute. If I copy and paste the sql into the mysql command line it does execute without warnings or errors. What gives?<br>
</blockquote>
<br></div></div>
Does date_plus_2 contain<br>
<br>
     "Robert"); DROP TABLE interactions; --<br>
<br>
By any chance?<span class="HOEnZb"><font color="#888888"><br>
-W</font></span></blockquote></div><br></div>