My MySQL DBX Adapter For DORM

70 views
Skip to first unread message

Paulo Coutinho

unread,
Apr 13, 2012, 2:08:02 AM4/13/12
to dorm, The Delphi ORM
Hi,

I have developed one mysql adapter, but i get some errors.

The error that i get is always when the line is executed:

reader := cmd.ExecuteQuery();

The query is (cmd := FB.Prepare(SQL);):

'SELECT ID,NAME,CODE FROM user WHERE ID = ?'

To test it you need use my adapter and use a simple load code like
this:

procedure TestData;
var
p: TPerson;
begin
p := Session.Load<TPerson>(1);
p.Free;
end;

You can see the screenshot here:

http://www.prsolucoes.com/downloads/dorm/dorm1.png
http://www.prsolucoes.com/downloads/dorm/dorm2.png
http://www.prsolucoes.com/downloads/dorm/dorm3.png

You can get the sample mysql script based on sample from DORM:

http://www.prsolucoes.com/downloads/dorm/mysql_data.sql

You can get my adapter here:

http://www.prsolucoes.com/downloads/dorm/dorm.adapter.MySQL.pas
http://www.prsolucoes.com/downloads/dorm/dorm.INC
http://www.prsolucoes.com/downloads/dorm/dorm.adapters.pas




Paulo Coutinho

unread,
Apr 13, 2012, 9:33:31 PM4/13/12
to dorm, The Delphi ORM
Hi

You can get my conf files here:

http://www.prsolucoes.com/downloads/dorm/dorm.conf
http://www.prsolucoes.com/downloads/dorm/dorm.mapping

Thanks




On Apr 13, 3:08 am, Paulo Coutinho <pa...@prsolucoes.com> wrote:
> Hi,
>
> I have developed one mysql adapter, but i get some errors.
>
> The error that i get is always when the line is executed:
>
> reader := cmd.ExecuteQuery();
>
> The query is (cmd := FB.Prepare(SQL);):
>
> 'SELECT ID,NAME,CODE FROM user WHERE ID = ?'
>
> To test it you need use my adapter and use a simple load code like
> this:
>
> procedure TestData;
> var
>   p: TPerson;
> begin
>   p := Session.Load<TPerson>(1);
>   p.Free;
> end;
>
> You can see the screenshot here:
>
> http://www.prsolucoes.com/downloads/dorm/dorm1.pnghttp://www.prsolucoes.com/downloads/dorm/dorm2.pnghttp://www.prsolucoes.com/downloads/dorm/dorm3.png
Reply all
Reply to author
Forward
0 new messages