<div dir="ltr">On Thu, Jun 13, 2013 at 12:38 PM, Michal Čihař <span dir="ltr"><<a href="mailto:michal@cihar.com" target="_blank">michal@cihar.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Dne Thu, 13 Jun 2013 11:51:18 +0530<br>
Supun Nakandala <<a href="mailto:supun.nakandala@gmail.com">supun.nakandala@gmail.com</a>> napsal(a):<br>
<div><div class="h5"><br>
> I am refactoring sql.php and I see some places where parsing of the sql<br>
> query done in the sql.php (eg line 445). I am planning to crate new methods<br>
> for these tasks in sqlparser.lib.php and call them from sql.php . I would<br>
> like to know the opinion from the developers about this approach.<br>
<br>
</div></div>Actually it would be better if those regular expressions would use<br>
parser because it would give it more tolerance to comments in SQL.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div style>Hi Michal,</div><div style>PMA_SQP_parse($sql_query) in sqlparser.lib.php is basically checking the sql query and setting some global variables. Could you please elaborate on how to use that function instead of these regular expressions such that it gives more tolerance to comments in SQL.</div>
<div style>Thank you. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
--<br>
Michal Čihař | <a href="http://cihar.com" target="_blank">http://cihar.com</a> | <a href="http://blog.cihar.com" target="_blank">http://blog.cihar.com</a><br>
</font></span><br>------------------------------------------------------------------------------<br>
This SF.net email is sponsored by Windows:<br>
<br>
Build for Windows Store.<br>
<br>
<a href="http://p.sf.net/sfu/windows-dev2dev" target="_blank">http://p.sf.net/sfu/windows-dev2dev</a><br>_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Thank you<br>Supun Nakandala<br>Dept. Computer Science and Engineering<br>University of Moratuwa<br>
</div></div>