Search found 193 matches

by btrewern
21.03.2006, 11:36
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Query.RowsAffected is always -1
Replies: 12
Views: 2799

:oopsp:

Yea sorry, RecordCount.

Ben
by btrewern
20.03.2006, 20:40
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Query.RowsAffected is always -1
Replies: 12
Views: 2799

What value do you expect RowsAffected to return for a SELECT statement? Arn't you looking for RowCount?

Ben
by btrewern
19.03.2006, 21:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values for not null fields on new record
Replies: 13
Views: 5397

Adrian,

If you want 'SELECT * FROM ...' to work then try putting something like:

Code: Select all

var
  i: Integer;
begin
  for i := 0 to ZQuery1.FieldCount - 1 do
  begin
    if ZQuery1.Fields[i].Required then
      ZQuery1.Fields[i].Required := False;
  end;
end;
in the AfterOpen event.

Ben.
by btrewern
17.03.2006, 11:13
Forum: 6.1.5
Topic: Latest Source
Replies: 1
Views: 1455

There's a svn repository at svn://firmos.at/zeos

Ben
by btrewern
15.03.2006, 15:00
Forum: 6.1.5
Topic: Working with arrays
Replies: 4
Views: 2244

I don't think there is any built in support for array datatypes in ZeosLib. You may be able to insert data using the builtin firebird SQL commands. I had to do similar in Postgresql some time ago.

Regards,

Ben
by btrewern
14.03.2006, 15:24
Forum: Other 6.x Versions
Topic: Who knows...
Replies: 8
Views: 4994

To download from SVN in windows use TortoiseSVN at http://tortoisesvn.tigris.org/


Ben
by btrewern
14.03.2006, 15:10
Forum: 6.1.5
Topic: Working with arrays
Replies: 4
Views: 2244

What database are you using?

Ben
by btrewern
14.03.2006, 15:07
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values for not null fields on new record
Replies: 13
Views: 5397

I use ZeosLib 6.5.1 with PostgreSQL 8.x and everything relating to default values works well.

Regards,

Ben
by btrewern
13.03.2006, 14:01
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Default values for not null fields on new record
Replies: 13
Views: 5397

As I understand it this is only because the field objects are initialized as Required for Not Null fields. If you change that then everything just works.

Regards,

Ben
by btrewern
12.03.2006, 21:40
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Looking for PostgreSQL libpq.dll header files for Delphi
Replies: 2
Views: 1049

Look at ZPlainPostgreSqlDriver.pas and ZPlainPostgreSqlxx.pas.

Ben
by btrewern
06.03.2006, 11:39
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: String escape in Delphi ?
Replies: 9
Views: 4493

I use QuotedStr() but I'm not sure if that covers you for every eventuality.

Regards,

Ben
by btrewern
04.03.2006, 22:48
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Error on connecting to a PostgreSQL8.1 DB
Replies: 11
Views: 3438

Try using the 7.4 version of the dll. Has worked for me against 7.4, 8.0 and 8.1 for some time now.

Ben.
by btrewern
24.02.2006, 17:47
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZeosLib Components Cached Updates
Replies: 6
Views: 1774

Try using ClientDataSets if you want this feature see cloned cursors. It does this kind of stuff and other clever things.

Ben
by btrewern
24.02.2006, 17:33
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Access Violation (Delphi 6, 6.5.1 alpha CVS as of 13/10/2005
Replies: 2
Views: 863

Look at the source, find out what the problem is, fix it and that should solve your problem.

If you want better help please give at least some information.

Regards,

Ben
by btrewern
24.02.2006, 17:29
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: How stable 6.5.1 is at this moment ?
Replies: 11
Views: 2353

I'm new to that too but try TortoiseCVS. Everyone seems to recommend it.

Ben