<div dir="ltr"><div>Hi Kenneth,<br><br></div>                    Thanks for your reply, I already include the<b> -include_lib("erlmysql/</b><wbr><b>include/client_records.hrl").  </b>in my source<b> <br></b></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 September 2017 at 02:29, Kenneth Lakin <span dir="ltr"><<a href="mailto:kennethlakin@gmail.com" target="_blank">kennethlakin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 09/01/2017 05:36 AM, Palanikumar Gopalakrishnan wrote:<br>
> *for checking Sql result {{metadata,2,0,<br>
> {server_status,false,true,<wbr>false,false,true,<br>
> false,false,false,false,false,<wbr>false,false},<br>
> [{field_metadata,"def","zurik"<wbr>,"erlang",<br>
> "erlang","name","name",33,135,<wbr>253,<br>
> <<0,0>>,0,[]},<br>
> {field_metadata,"def","zurik",<wbr>"erlang",<br>
> "erlang","id","id",63,11,3,<br>
> <<0,0>>,0,[]}],[]},<br>
> [["some",457],["some",457],["<wbr>data2sosfasfme",42]]}*<br>
<br>
So, it *looks* like your driver is returning a tuple containing:<br>
* A 'metadata' record which contains (among other things) a<br>
server_status record and a list of field_metadata records.<br>
* A list containing the data that is the response to your query.<br>
<br>
The "Getting Started" section of the erlmysql documentation [0] seems to<br>
say that the record definitions that you need are contained in<br>
"client_records.hrl". Loading that file into your Erlang shell with the<br>
rr/1 shell command and re-running the query should make the SQL driver's<br>
return value make more sense to you.<br>
<br>
In order to load those record definitions into your client code, you'll<br>
probably need to do something like<br>
<br>
-include_lib("erlmysql/<wbr>include/client_records.hrl").<br>
<br>
near the top of the file that needs to interact with the SQL driver.<br>
<br>
[0] <a href="http://erlmysql.sourceforge.net/" rel="noreferrer" target="_blank">http://erlmysql.sourceforge.<wbr>net/</a><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><br></div><div><b>Warm Regards,</b></div></div><div><br></div><div><span style="background-color:rgb(255,255,255)"><span style="font-size:12.8px"><b>Palanikumar Gopalakrishnan </b></span></span><img src="https://ssl.gstatic.com/mail/emoji/6/48px/emoji_u270c.png" alt="✌" style="font-size:small;margin:0px 0.2ex;vertical-align:middle;height:24px;width:24px"><span style="background-color:rgb(255,255,255)"><br></span></div><div><span style="font-size:12.8px;background-color:rgb(255,255,255)"><b>Developer</b></span><br></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div>
</div>