Search found 193 matches

by btrewern
23.01.2006, 14:50
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: synonym to setkey or findkey
Replies: 4
Views: 1409

I've just looked at your question again and it looks like you need to use a TZupdateSQL component. See TUpdateSQL in the Delphi help.

Regards,

Ben
by btrewern
23.01.2006, 14:48
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: synonym to setkey or findkey
Replies: 4
Views: 1409

If you look at the help page for Locate I think you'll find that it's supposed to use indexes. I'm not sure if this is true of zeos but I've never had problems with using it.

Changing from file based databases to RDBMS you will have to change the way you work slightly.

Regards,

Ben
by btrewern
23.01.2006, 00:48
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: synonym to setkey or findkey
Replies: 4
Views: 1409

I've never used setkey or findkey but I think Locate will give you similar fuctionality.

Regards,

Ben
by btrewern
16.01.2006, 19:01
Forum: 6.1.5
Topic: patch 1 and patch 2 for ZeosLib 6.1.5
Replies: 1
Views: 1120

The patches are on the sourceforge site. See http://www.sourceforge.net/projects/zeoslib

And no I don't think there is a mailing list. This forum is the best place to get information relating to Zeoslib.

Regards,

Ben
by btrewern
16.01.2006, 18:40
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values on new record
Replies: 6
Views: 1492

I think this works (from memory):

Remove the Not Null restrictions from the delphi field objects in question. Then if you post the record with these fields set as null PostgreSql uses it's default values. You will have to refetch the row in question to see the row values.

Regards,

Ben
by btrewern
15.01.2006, 19:29
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Alternative for RecordCount ?
Replies: 4
Views: 1222

There is an TZQuery.IsEmpty property which may be what you need.

Regards,

Ben
by btrewern
09.01.2006, 10:36
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: executable file size
Replies: 8
Views: 1737

I doubt it. If you really need to reduce the size of your application then you could try just using ZDBC. See the knowledge base.

Ben
by btrewern
07.01.2006, 15:25
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Questions about "I can't have control of transaction&qu
Replies: 4
Views: 1146

I've looked at this previously and come to the conclusion that transaction control for Postgresql in zeos is quite broken. Currently I'm using TransactionIsolationLevel = tiNone and doing my own transactions calling BEGIN, ROLLBACK and COMMIT when needed. When I have time I'd like to see if I could ...
by btrewern
04.01.2006, 13:24
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: executable file size
Replies: 8
Views: 1737

If you are talking about exe compression progs. See here for a discussion and a useful utility: http://www.jrsoftware.org/striprlc.php

Regards,

Ben
by btrewern
01.01.2006, 21:26
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Bug - TZTable and Computed
Replies: 1
Views: 602

You need to use a TZUpdateSQL component. See the docs for TUpdateSQL.

Regards,

Ben
by btrewern
22.12.2005, 11:31
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Mysql Table Post
Replies: 6
Views: 1261

If you see the documentation for TBDEDataSet you'll see: "Call ApplyUpdates to write a dataset’s pending cached updates to a database." I assume zeoslib uses ApplyUpdates in the same way. Also I've been using Zeos now for some years against PostgreSQL and never had to call ApplyUpdates. Re...
by btrewern
21.12.2005, 15:27
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeosdbo from cvs, lazarus and fpc
Replies: 36
Views: 11255

If you log in you should be able to download it. It's attached to his post.

Ben
by btrewern
21.12.2005, 13:25
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Error compiling v 6.5.1 in Delphi 5 Enterprise
Replies: 9
Views: 2226

A bit more complicated than I thought!

I think the Types unit was mostly extracted from some other units in Delphi 6 (To allow for Kylix compatibility) but Delphi 6 also overhauled lots of stuff to do with Variants so I think this may be a struggle.

Anyone else have any ideas?

Ben
by btrewern
21.12.2005, 10:33
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Mysql Table Post
Replies: 6
Views: 1261

That should only be true if you have CachedUpdates = True on your dataset. Otherwise there's a problem there.

Ben
by btrewern
20.12.2005, 16:42
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Error compiling v 6.5.1 in Delphi 5 Enterprise
Replies: 9
Views: 2226

It seems to me that the only file you need to change to get this working is ZDbcMySqlStatement.pas. Replace function TZMySQLPreparedStatement.PrepareSQLParam(ParamIndex: Integer): string; var Value: TZVariant; TempBytes: TByteDynArray; TempBlob: IZBlob; AYear, AMonth, ADay, AHour, AMinute, ASecond, ...