<div>
                    Noted. Thanks :)
                </div>
                <div><div><br></div><div>-- </div><div>Ayush Chaudhary</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">On Tuesday, 25 June 2013 at 6:07 PM, Marc Delisle wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Ayush Chaudhary a écrit :</div><blockquote type="cite"><div><div>Hi, </div><div><br></div><div>I was setting up some unit tests when I came across the function PMA_Util::sqlAddSlashes() Isn't it supposed to add slashes to single quotes? Because I tested this:</div><div><br></div><div>echo PMA_Util::sqlAddSlashes("pma_'db");</div><div><br></div><div>And the output was pma_''db</div><div><br></div><div>Is this the correct behaviour? </div></div></blockquote><div><br></div><div>Hi Ayush,</div><div>yes this is correct, see [0]. "A “'” inside a string quoted with “'” may </div><div>be written as “''”. "</div><div><br></div><div>However, this function could be renamed escapeForSql() or something like </div><div>that.</div><div><br></div><div>[0] </div><div><a href="http://dev.mysql.com/doc/refman/5.5/en/string-literals.html#character-escape-sequences">http://dev.mysql.com/doc/refman/5.5/en/string-literals.html#character-escape-sequences</a></div><div><br></div><div>-- </div><div>Marc Delisle</div><div><a href="http://infomarc.info">http://infomarc.info</a></div><div><br></div><div>------------------------------------------------------------------------------</div><div>This <a href="http://SF.net">SF.net</a> email is sponsored by Windows:</div><div><br></div><div>Build for Windows Store.</div><div><br></div><div><a href="http://p.sf.net/sfu/windows-dev2dev">http://p.sf.net/sfu/windows-dev2dev</a></div><div>_______________________________________________</div><div>Phpmyadmin-devel mailing list</div><div><a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a></div><div><a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>