Page 1 of 1

Date/Time field problems in Lazarus

Posted: 21.11.2005, 23:01
by kfitzner
In Lazarus 0.9.10 with a recent checkout of zeosdbo_rework, there seems to be a problem converting database date/datetime/timestamp/etc columns to TDateTime. The dates come out very strange indeed. To duplicate the problem:
  1. Grab the latest CVS of zeosdbo_rework and install into Lazarus (see the tutorial on the Lazarus wiki)
  2. Drop a TZConnection component on a form, fill in its Host, Port (3306), User, Password, Database, and Protocol properties to connect to an existing database. Then set Connected to true.
  3. Drop a TZTable component on the form and set its Connection property to the TZConnection component you just made. Select a table in the TableName property editor that has a DATETIME (MySQL) or Time/Date/Timestamp (PostgreSQL) type column in it. Then set Active to true.
  4. Drop a TDatasource component on the form and set its DataSet property to be the TZTable you just placed.
  5. Drop a TdbGrid component on the form and set its DataSource property to be the TDatasource you just dropped.
  6. Look at all the funny dates in the DATETIME column. Don't point, though, or they might feel bad.
I have tested this against MySQL 4.1.11 and PostgreSQL 8.0.3 databases. I am guessing that it's a problem right across the board, but can't say that for sure.

Posted: 22.11.2005, 10:24
by IgD
I think this is a dupe of my bug:

http://seegernet.koolhost.de/zeosforum/ ... .php?t=145

Where are the maintainers of this project???

Posted: 22.11.2005, 10:46
by Michael
Hi guys!

Sorry for bumpin' again and again and again ... but ... seriously: Our team member who cares about the Lazarus port is not reachable since two months :(. Even if he lives here in germany I could not reach him. Sorry, but we are trying to find a quick solution ...

Regards.

Posted: 22.11.2005, 12:19
by IgD
Try installing ZeosLib into Lazarus. There are typos in the source it won't even compile without editing.

Posted: 22.11.2005, 18:22
by kfitzner
I would be happy to step up to the plate to help out getting ZeosLib working properly with Lazarus. Another project I have done a little work on (JediVCS) is interested in using Lazarus + ZeosLib, so I have a great incentive to help. :)

I just need to know who to submit patches to and/or whether or not it's possible to get CVS commit access.

Posted: 23.11.2005, 11:13
by IgD
Michael, why don't you turn the Lazarus port over to me and kfitzner? We will do our best to make it work.

Posted: 23.11.2005, 11:21
by Michael
Hi IgD, kfitzner,

this is an issue, I was truely thinking of. Have to discuss it with Frank. All further things about that will follow via PM ;-).

Regards!