<br clear="all"><div>Hello All,</div><div><br></div><div>I noticed that MySQLdb not allowing hyphen may be way to prevent injection attack.</div><div>I have something like below:</div><div><br></div><div>"insert into reviews(message, title)values('%s', '%s')" %( "We don't know where to go","We can't wait till morrow" )</div>
<div><br></div><div><span class="Apple-style-span" style="font-family:sans;background-color:rgb(255,255,255);font-size:medium"><pre style="background-color:rgb(238,238,238);border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(221,221,221);border-right-color:rgb(221,221,221);border-bottom-color:rgb(221,221,221);border-left-color:rgb(221,221,221);padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px">
ProgrammingError(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 't know where to go.</pre></span></div><div>How do I work around this error?</div>
<div><br></div><div>Regards,</div><div>Emeka</div>-- <br><i>Satajanus  Nig. Ltd<br><br><br></i><br>