Search found 193 matches

by btrewern
20.03.2008, 12:09
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Filtering issue
Replies: 3
Views: 1134

Filtering issue

When using a filter like:

Code: Select all

ZQuery1.Filter := 'Field1 Like ''*any_text*''';
ZQuery1.Filtered := True;
The returned recordset includes all the correct records and all records which contain just one character in Field1.

Anyone seen this before? Any fix?

Regards,

Ben
by btrewern
18.03.2008, 15:43
Forum: Other 6.x Versions
Topic: Postgresql out argument for parameters in functions
Replies: 2
Views: 3292

I'm not sure you should need to parse the result set. It should come back as a proper recordset. I'm currently using 6.6.2rc and functions similar to the following: CREATE type test_tp as (a integer, b text); CREATE FUNCTION test_fn(code integer) RETURNS SETOF test_tp AS $$ SELECT a, b FROM test_tab...
by btrewern
13.03.2008, 12:02
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read only fields not really read only
Replies: 5
Views: 1530

It's related to OnFilterRecord. I'm not 100% sure if it's needed but I dragged it from the VCL.

Ben
by btrewern
12.03.2008, 17:18
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read only fields not really read only
Replies: 5
Views: 1530

Added to Mantis so as to not be lost.
by btrewern
07.03.2008, 16:09
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read only fields not really read only
Replies: 5
Views: 1530

After a little digging I think I've found a fix: Change ZAbstractRODataset.SetFieldData to read: procedure TZAbstractRODataset.SetFieldData(Field: TField; Buffer: Pointer); var ColumnIndex: Integer; RowBuffer: PZRowBuffer; WasNull: Boolean; begin WasNull := False; if not Active then raise EZDatabase...
by btrewern
07.03.2008, 13:14
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Read only fields not really read only
Replies: 5
Views: 1530

Read only fields not really read only

It seems that setting a field's ReadOnly property to true on a Zeos dataset does not actually make the field read only. ZQuery1.Edit; ZQuery1id.ReadOnly := True; ZQuery1id.Value := 1; <-- This should raise an error ZQuery1.Post; <-- This completes. It's not a big problem but I think it's a bug. Does...
by btrewern
05.03.2008, 10:58
Forum: PostgreSQL
Topic: pictures & postgresql
Replies: 6
Views: 1960

See the small patch I posted here: http://zeos.firmos.at/viewtopic.php?t=1641&highlight=
I've been using it and it seems to work. Try it and see how you get on.

Regards,

Ben
by btrewern
23.01.2008, 12:09
Forum: PostgreSQL
Topic: Reg Replication Concepts in postgreSQL
Replies: 1
Views: 925

I think you can use slony for this. See here: http://slony.info/

Regards,

Ben
by btrewern
15.01.2008, 13:12
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Backslash truncated delphi7 + postgres8.1 + zeosdbo 6.6.2-rc
Replies: 5
Views: 1681

It looks as if the following works correctly. In the TZPostgreSQLResultSet.GetBlob function of the ZDbcPostgreSqlResultSet file replace if FPlainDriver.GetIsNull(FQueryHandle, RowNo - 1, ColumnIndex - 1) = 0 then begin Stream := nil; try // Stream := TStringStream.Create(DecodeString(GetRawString(Co...
by btrewern
15.01.2008, 12:23
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Backslash truncated delphi7 + postgres8.1 + zeosdbo 6.6.2-rc
Replies: 5
Views: 1681

It seems there is a problem in TZPostgreSQLResultSet.GetBlob. if you replace if FPlainDriver.GetIsNull(FQueryHandle, RowNo - 1, ColumnIndex - 1) = 0 then begin Stream := nil; try // Stream := TStringStream.Create(DecodeString(GetRawString(ColumnIndex))); Stream := TStringStream.Create(FPlainDriver.D...
by btrewern
04.12.2007, 14:55
Forum: PostgreSQL
Topic: Postgres Database Backup
Replies: 5
Views: 2476

It doesn't look as if there is an option to call pg_dump with a password without using the .pgpass file. I think it's for security reasons.

You could hack pg_dump to take a password on the command line. I'm not sure how much work it would be but you do have the code available.

Regards,

Ben
by btrewern
09.10.2007, 12:12
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Install problem 6.6.0/6.6.1 and Cbuilder 6
Replies: 2
Views: 1363

It looks as if you still have some .bpl files left from your old installation. Clean them out and you should be up and running.

Regards,

Ben
by btrewern
08.10.2007, 14:21
Forum: Off Topic
Topic: One ZConnection and many data aware components?
Replies: 8
Views: 27601

FYI - I've been using Zeos in a multi-threaded Delphi app for some time now. It uses IntraWeb to produce a web application and the only problem I've had was with the TZSQLMonitor which was not completely thread safe.

BTW always use one TZConnection per thread.

Regards,

Ben
by btrewern
03.10.2007, 11:21
Forum: PostgreSQL
Topic: Sending '::'
Replies: 3
Views: 1655

BTW if you do need parameters then just double the :s as below:

SELECT myfield_timestamp::::date;

Regards,

Ben
by btrewern
01.10.2007, 14:47
Forum: PostgreSQL
Topic: Sending '::'
Replies: 3
Views: 1655

Set ParamCheck to False if you don't need parameters.

Regards,

Ben