Recent

Author Topic: Zeos for Lazarus is officially ported!  (Read 92800 times)

hombergs

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #15 on: May 06, 2005, 06:18:24 pm »
Quote from: "jesusr"
I did a small test using the firebird 1.5 employee sample database,  it seems to have problems with some numeric fields? check for example the DEPARTMENT and SALARY_HISTORY tables, here is a link to the lazarus project: http://mx.geocities.com/jesusrmx/lazarus/zeos_fbbrowser.tgz


I found the problem.
When you use the EditFormat (TDbEdit) or DisplayFormat (TDbGrid Column) propertie the Access Violation will not occur.
So i will get deeper into it.
Zeos Teammember

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #16 on: May 09, 2005, 04:59:34 pm »
Think I found the bug and submitted it to the FreePascal-Bugtracker (http://www.freepascal.org/bugs/edit.php3?ID=3957)

hombergs

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #17 on: May 10, 2005, 01:40:18 am »
Bug ID 3957 is fixed in the CVS.
Zeos Teammember

jesusr

  • Sr. Member
  • ****
  • Posts: 496
Zeos for Lazarus is officially ported!
« Reply #18 on: May 11, 2005, 07:00:02 am »
great, it works. I tried to install in windows, had some minor problems and it's working ok too.

The kind of problem is as follow for several files:

Index: ZDbcMetadata.pas
===================================================================
RCS file: /cvsroot/zeoslib/zeosdbo_rework/src/dbc/ZDbcMetadata.pas,v
retrieving revision 1.39
diff -c -r1.39 ZDbcMetadata.pas
*** ZDbcMetadata.pas   4 May 2005 16:22:40 -0000   1.39
--- ZDbcMetadata.pas   11 May 2005 04:57:54 -0000
***************
*** 47,53 ****
  {$ENDIF}
  {$IFDEF VER130BELOW}
    {$IFDEF WIN32}
!     Comobj,
    {$ENDIF}
  {$ENDIF}
    Classes, SysUtils, Contnrs, ZSysUtils, ZClasses, ZDbcIntfs, ZTokenizer,
--- 47,53 ----
  {$ENDIF}
  {$IFDEF VER130BELOW}
    {$IFDEF WIN32}
!     //Comobj,
    {$ENDIF}
  {$ENDIF}
    Classes, SysUtils, Contnrs, ZSysUtils, ZClasses, ZDbcIntfs, ZTokenizer,

I didn't offer the patch because I know too little about zeoslib internals

Edwin

  • New Member
  • *
  • Posts: 22
Zeos for Lazarus is officially ported!
« Reply #19 on: May 17, 2005, 10:32:44 pm »
Hi,

Good work! I just downloaded the latest CVS.
Three questions:
1. I am trying to set a master-detail relation between two queries by using a Param in the SQL statement of the detail query. In Delphi this works but in Lazarus the detail query is empty. How can I solve this (I'd rather not use the 'Mastersource' option)?
2. Is there a problem with the Date type because all the years are displayed as 1899?
3. Is there ever going to be a Field Editor (like in Delphi)?

Thanks,

Edwin

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #20 on: May 24, 2005, 09:41:26 pm »
Hi,

I've got a problem with using zeoslib with sqlite and mysql. Storing data works just fine, but to retrieve information from the database I have to use a construction with "ZQuery1.Open" which produces an exception regardless in what situation.
The error code returned by the debugger is: "Project project1 raises exception class EZSQLException."

Thanks in advance

janhsh

  • New Member
  • *
  • Posts: 17
    • http://www.houbart.be
Error when installing Zeo
« Reply #21 on: May 26, 2005, 12:38:45 am »
I've got a problem with installing  zeoslib

in zcompatiblity.pas  on line 170

  LText := PChar(S);

--> error "Illegal type conversion Shortstring to ^Char"

Thanks in advance

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #22 on: May 27, 2005, 09:08:01 am »
Did you check out the lazarus-versions of packages also?
Either you did not or you deactivated the "Delphi comapatible"-Compilerswitch. (-Sd)

romekf

  • Newbie
  • Posts: 6
Zeos for Lazarus is officially ported!
« Reply #23 on: June 03, 2005, 12:57:47 pm »
I've got another problem with instaling zeoslib

in zdbconnection.pas line 331

Analyser := TZGenericStatementAnalyser.Create;
Argument can't be assigned to

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #24 on: June 06, 2005, 04:13:28 pm »
Do you have the latest version of lazarus???
I had this error with one version weeks ago, but it is already fixed.

romekf

  • Newbie
  • Posts: 6
Zeos for Lazarus is officially ported!
« Reply #25 on: June 06, 2005, 09:46:27 pm »
Now i have the latest version of lazarus and instaled zeoslib:)
I have one more question: where is fields editor or something similar to add at design time fileds to TZquery?

Best regards
Romek

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #26 on: June 07, 2005, 05:19:10 pm »
Why is the master-detail relation through the Datasource property (so with a :Param in the SQL) of ZQuery not working?

Thanks,

Edwin

Stevie

  • New Member
  • *
  • Posts: 15
Zeos for Lazarus is officially ported!
« Reply #27 on: June 09, 2005, 01:18:16 pm »
@romekf: This should be implemented by lazarus i.e. the lcl.

@Guest: I think, this is also a problem with missing implementation within the lcl (db.pas)

Edwin

  • New Member
  • *
  • Posts: 22
Zeos for Lazarus is officially ported!
« Reply #28 on: June 09, 2005, 05:07:26 pm »
@Stevie: Thanks for your reply.
I don't think it is a problem within the lcl, because using UIB (with TFBDataset) it is working!

Another thing: what is wrong with the Date field (everything is 30/12/1899)?

By the way, I'm using Firebird 1.5.


Thanks,

Edwin

Anonymous

  • Guest
Zeos for Lazarus is officially ported!
« Reply #29 on: June 10, 2005, 08:34:48 am »
I tired to compile the lastest cvs snapshot, but I've got the following messange:
/usr/lib/lazarus/zeos/src/component/ZSqlStrings.pas(63,5) Warning: Constructor should be public
/usr/lib/lazarus/zeos/src/component/ZAbstractRODataset.pas(57,19) Hint: Type "TUpdateStatus" redefinition
/usr/lib/lazarus/zeos/src/component/ZAbstractRODataset.pas(261,15) Error: There is no method in an ancestor class to be overridden: "TZAbstractRODataset.CheckFieldCompatibility(TField, TFieldDef)"
/usr/lib/lazarus/zeos/src/component/ZAbstractRODataset.pas(334,14) Warning: An inherited method is hidden by "TZAbstractRODataset.Locate(const AnsiString,const Variant, TLocateOptions):Boolean"
/usr/lib/lazarus/zeos/src/component/ZAbstractRODataset.pas(379,1) Fatal: There were 1 errors compiling module, stopping

I removed the "override" from the end of the
procedure CheckFieldCompatibility(Field: TField; FieldDef: TFieldDef); override; line, but
when I tired to compile the stuff the next error is
/usr/lib/lazarus/zeos/src/component/ZStreamBlob.pas(1,1) Fatal: Can't find unit DBConsts

 

TinyPortal © 2005-2018