Search found 193 matches

by btrewern
19.06.2007, 08:56
Forum: User Patches
Topic: [patch_rejected] Patch ZEOS 6.6 to work on D4 / Turbo Delphi
Replies: 23
Views: 10859

You need to login to see attachments.

Regards,

Ben
by btrewern
13.06.2007, 10:35
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Goto and Find functions?
Replies: 4
Views: 1640

First thing first - Don't use TZTable for anything other than very small tables!!

Try using Locate or Lookup.

Regards,

Ben
by btrewern
11.06.2007, 11:17
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Cached Updates and master detail relationship
Replies: 2
Views: 1398

What database are you using? In PostgreSQL I look up the required id for the field SELECT nextval(seq_name); and enter it into the dataset. It can then be posted to the database (ApplyUpdates) when needed or discarded if the user decides to cancel the transaction. I hope this helps, Regards, Ben
by btrewern
01.06.2007, 14:47
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Definition of TZRowBuffer.Columns (ZDBCCache.pas) too small
Replies: 5
Views: 971

Mark, Just tested this using task manager and some quite large query results and it does seem to make quite a difference. I could easily use all my swap space using TColumnArray=array[0..131072] of byte; TZRowBuffer = packed record Index: Integer; UpdateType: TZRowUpdateType; BookmarkFlag: Byte; Col...
by btrewern
01.06.2007, 09:26
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Definition of TZRowBuffer.Columns (ZDBCCache.pas) too small
Replies: 5
Views: 971

Mark,

Is this per table, per row or what? If it's per row then I'm not sure it's a good idea to x4 the memory used for just this case.

Regards,

Ben
by btrewern
31.05.2007, 15:17
Forum: Firebird
Topic: Problem with insert
Replies: 14
Views: 4851

mdaems,

Does the TZSequence component work for all databases? I haven't tried it yet but I'll have a go now you mention it.

Thanks,

Ben
by btrewern
31.05.2007, 15:10
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How do I install v6.6.1 in Delphi7
Replies: 3
Views: 1053

You do also need to add all the folders within the Zeoslib src folder to your Library path.

Regards,

Ben
by btrewern
31.05.2007, 10:59
Forum: Firebird
Topic: Problem with insert
Replies: 14
Views: 4851

BTW if you want to not have to refresh the row you can use

Code: Select all

SELECT GEN_ID(MAPS_ID_GEN, 1) FROM RDB$DATABASE;
to find the next ID and then enter it manually. I do this in PostgreSQL to get round similar issues.

Ben
by btrewern
18.05.2007, 16:23
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Installation - Delphi 2005 with 6.6.1 MySQL
Replies: 5
Views: 1619

You can try using Lazarus see: http://www.lazarus.freepascal.org/ or I think you could install just part of Zeos and use the ZDBC API. See the Knowledge Base. the main problem with not having TDataset support is you'll not be able to use any data aware components - I'd have a look at Turbo Delphi. Y...
by btrewern
18.05.2007, 09:28
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeos & postgresql
Replies: 4
Views: 1003

If you try

Code: Select all

SELECT CAST("field" as integer) as "FieldName" From "table";
It may work.

Looks like this is to do with the slightly brain dead way Zeos finds the type of columns.

Regards,

Ben
by btrewern
16.05.2007, 09:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeos & postgresql
Replies: 4
Views: 1003

You could use:

Code: Select all

SELECT CASE WHEN "field" THEN 1 ELSE 0 END FROM "table";
You can also try

Code: Select all

SELECT CAST("field" as integer) FROM "table";
Regards,

Ben
by btrewern
15.05.2007, 14:44
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: TZSQLProcessor, unknown token
Replies: 5
Views: 1248

I would guess that Zeos is parsing your SQL to find parameters. Sees the = after the : and barfs. Not sure what needs to be done to fix this though. Try setting ParamCheck to False.

Regards,

Ben
by btrewern
03.05.2007, 15:39
Forum: PostgreSQL
Topic: Postgres Database Backup
Replies: 5
Views: 2476

I think you'd be better off using the pg_dump and pg_dumpall included in the Postgresql distro. They are made for the purpose.

Regards,

Ben
by btrewern
02.05.2007, 09:17
Forum: MySQL
Topic: Timeout - Doesn't timeout in time to prevent hanging
Replies: 4
Views: 1734

Shouldn't the parameter be 'connect_timeout' and should be set on the server itself.

Regards,

Ben
by btrewern
01.05.2007, 09:30
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZeosLIb and stringgrid?
Replies: 4
Views: 1075

I expect it's a limitation of the stringgrid. Try looking for a different component e.g. Virtual Treeview (http://www.soft-gems.net/index.php?opti ... &Itemid=33could do what you want but takes a little effort to program for.

Regards,

Ben