<div dir="ltr">2013/9/5 Michael Van Canneyt <span dir="ltr"><<a href="mailto:michael@freepascal.org" target="_blank">michael@freepascal.org</a>></span><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On Thu, 5 Sep 2013, silvioprog wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Thank guys, fixed with:<br>
<br>
q.SQL.Add('where t1.id::text = :id');<br>
</blockquote>
<br>
I recommend against this.<br>
<br>
It will do the conversion for each record that is tested. This takes time.<br>
<br>
If you do the conversion on the parameter, it will be done only once, when the parameter is set (or so it should).<br>
<br>
Michael.</blockquote><div><br></div><div>Hm... you're absolutely right. I'll do as you advised me before (with cast in param). Thanks again! (y)<br></div><div> </div></div>-- <br>Silvio Clécio<br>My public projects - <a href="http://github.com/silvioprog" target="_blank">github.com/silvioprog</a>
</div></div>