<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 26, 2014 at 8:30 PM, Isaac Bennetch <span dir="ltr"><<a href="mailto:bennetch@gmail.com" target="_blank">bennetch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Marc has already provided excellent answers to most of this, but see below:<br>
<div class=""><br>
On 6/26/14 6:25 AM, Chirayu Chiripal wrote:<br>
> On Thu, Jun 26, 2014 at 3:31 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a><br>
</div><div><div class="h5">> <mailto:<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>>> wrote:<br>
><br>
>     Le 2014-06-25 06:23, Chirayu Chiripal a écrit :<br>
>     > Hi,<br>
>     > Feature Request Link:<br>
>     > <a href="http://sourceforge.net/p/phpmyadmin/feature-requests/637/" target="_blank">http://sourceforge.net/p/phpmyadmin/feature-requests/637/</a><br>
>     ><br>
>     > I am bit confused that what does this RFE is all about. Here is my<br>
>     doubt:<br>
>     ><br>
>     > 1] Does this feature requests says that if a field has a "prepend"<br>
>     input<br>
>     > transformation plugin with prepend text as "phpMyAdmin " then on<br>
>     insert<br>
>     > page if someone enters into this field "Bringing MySQL to the web" and<br>
>     > when a row is inserted then it should insert "phpMyAdmin Bringing<br>
>     MySQL<br>
>     > to the web" into the database.<br>
>     ><br>
>     > OR it requires something else?<br>
><br>
>     Hi Chirayu,<br>
>     the example you mention is correct, but this feature request is much<br>
>     more than that. Look at the comment from Garvin in the RFE.<br>
><br>
>     In reality, we don't have to code a credit card validation, for example;<br>
>     we just have to provide the mechanism by which someone can code their<br>
>     own credit card validation and apply it to the input field.<br>
><br>
><br>
> In my proposal, I also gave an example of regex validation plugin i.e.<br>
> if some invalid data is inserted then that plugin can replace that<br>
> invalid data with some other value (which would be given in plugin<br>
> options) and if data is valid then it should go as it is. I am not sure<br>
> about canceling the insert with error message right now but it can be<br>
> done like by setting value for invalid data in plugin option as NULL for<br>
> not null column which would automatically fail the insert or in the<br>
> plugin itself if validation fails then it could throw a error and stop<br>
> the execution of the script itself or we can have a boolean & error<br>
> variable in transformation plugin which would be checked before<br>
> insert/update and take actions likewise.<br>
<br>
</div></div>I think rather than waiting until submission and trying to make the<br>
INSERT fail, we should do any validation client side (through JavaScript<br>
so when the field loses focus, we validate and display a non-intrusive<br>
message explaining that it's invalid). Does this help? <br></blockquote><div><br></div><div>I recently noticed that in "transformation" column of "pma__column_info" table the name of transformation is stored something like this: "<span>image_jpeg__inline.inc.php" rather than "</span><span><span>image_jpeg__inline.class.php</span>" i.e. extension ".class.php" is replaced with ".inc.php" while storing and it is reversed while fetching. Is there any particular reason for doing this?<br>
<br></span> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="im"><br>
>     --<br>
>     Marc Delisle | phpMyAdmin<br>
><br>
><br>
> --<br>
> Regards,<br>
> Chirayu Chiripal<br>
> phpMyAdmin Intern - Google Summer of Code 2014<br>
> <a href="https://chirayuchiripal.wordpress.com/" target="_blank">https://chirayuchiripal.wordpress.com/</a><br>
><br>

</div></blockquote></div></div></div>