[patch_done] Lazarus/FPC x64, fpc 2.6.1, win64 MySQL 64Bit

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

[patch_done] Lazarus/FPC x64, fpc 2.6.1, win64 MySQL 64Bit

Post by wylton »

project *** raised exception class 'EZSQLException' with message:
SQL error: You have an error in your SQL syntax; check the manuel that cooresponds to your mysql server version for the right syntax to use near 'LIKE '%'' at line 1.

in file 'D:\lazarus64\components\zeoslib\src\ZDbcMysqlUtiles.pas' at line 470.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Can you tell me more details about this problem? I Can't run the testsuites for fpc/dbc-layers for lazarus. So please tell me detailed your Config-details..

Best regards

EgonHugeist
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

unit Unit1;

{$mode objfpc}{$H+}

interface

uses
Classes, SysUtils, FileUtil, ZConnection, ZDataset, Forms, Controls, Graphics,
Dialogs, StdCtrls;

type

{ TForm1 }

TForm1 = class(TForm)
Button1: TButton;
ZConnection1: TZConnection;
ZQuery1: TZQuery;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;

var
Form1: TForm1;

implementation

{$R *.lfm}

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
with ZQuery1 do
begin
Connection:=ZConnection1;
active:=false;
sql.Clear;
sql.Text:='select * from empresa';
open;
end;

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
with ZConnection1 do
begin
ZConnection1.HostName:='localhost';
ZConnection1.User:='zeoslib';
ZConnection1.Password:='lazarus';
ZConnection1.Port:=3306;
ZConnection1.Database:='lazarus';
ZConnection1.Protocol:='mysql-5';
ZConnection1.Connect;
//ZConnection1.Connected:=true;

end;

end;

end.
Image
You do not have the required permissions to view the files attached to this post.
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

picture2
You do not have the required permissions to view the files attached to this post.
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

picture3
You do not have the required permissions to view the files attached to this post.
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

with lazarus win32, this do fine..
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

picture4
You do not have the required permissions to view the files attached to this post.
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

Give example mysql database dump with example lazarus project in archive
Lazarus 1.0.8 fpc 2.6.0
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

wylton,
I'll try my best to help you. Can you also tell me which ClientCodePage do you use? Have you updated your Zeos-Rev.? If the thread-Rev. is right then you use my private expermintal one you have to know. And actually i'm hardly working on it. There are nearly dayly Rev-upgrades. I think it's a compatibility problem of the new FPC 2.6.

ism, are you fpc2.6 user?

Best regards
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

this is only problem of X64 fpc 2.6.. I have tested on X32 fpc 2.6.0, work fine. I haven't use any ClientCodePage in Zconnection and ZQuery.
my windows is windows 7 in chinese.
I have trid with rev943 and rev1008(?).
sorry my ingles....
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

ism wrote:Give example mysql database dump with example lazarus project in archive
que es lo que necesitas? backup mysql database con Lazarus?
en windows o Linux? para backup, puedes utilizar process de Lazarus.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Your english does'nt matter... Which branch have you downloaded? trunk or testing or testing-egonhugeist? If the last one then refresh your SVN... and tell me if the erreors happens again..
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post by ism »

EgonHugeist wrote: ism, are you fpc2.6 user?
No , but I can easily install it , I am interested in the reliable work of zeosdbo (i use it in my projects) and can test it
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

ism,

which compiler is your prefered one? I need some test-developers for my private testing-branch. Some detailed bug-reports are helpfull or additional thougth...

Are you fpc or delphi user?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
wylton
Senior Boarder
Senior Boarder
Posts: 58
Joined: 14.07.2011, 20:56

Post by wylton »

now I update to zeoslib - Revision 1017: /branches/testing..
problem is same.
You do not have the required permissions to view the files attached to this post.
Locked