Search found 118 matches

by olehs
23.07.2012, 16:33
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

EgonHugeist,
Ok, thanks a lot.
by olehs
23.07.2012, 16:25
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

olehs wrote: ftByte is more like Integer field.

Code: Select all

        {$IFDEF DELPHI12_UP}
        ftByte:
          Statement.SetByte(I + 1, Param.AsByte);
        {$ENDIF}
Sorry, I'm not catching up with you. It's already fixed )
by olehs
23.07.2012, 16:20
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

Yes, I just saw it.

But there is no fix for TZStroredProc, and I don't think it's right to treat ftByte just like ftBytes.
ftByte is more like Integer field.

Code: Select all

        {$IFDEF DELPHI12_UP}
        ftByte:
          Statement.SetByte(I + 1, Param.AsByte);
        {$ENDIF}
by olehs
23.07.2012, 15:57
Forum: 6.6 - stable
Topic: Is there a way to set the timeout on a PostgreSQL query?
Replies: 1
Views: 444

There is a 'connect timeout' parameter:

Code: Select all

ZConnection.Properties.Add('timeout=10');
by olehs
23.07.2012, 15:49
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZStoredProc doesn't return any returnValue/set
Replies: 15
Views: 3716

[patch_done] TZStoredProc doesn't return any returnValue/set

As I see, there is no FetchOutParams implementation in ZDbcPostgresqlStatement.

Any chance to get at least OutParam values, or even ResultSets?
by olehs
23.07.2012, 14:20
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

EgonHugeist , Sorry, didn't see the topic's branch. But yes. I am using latest test branch version from SVN and ftByte is not supported neither in TZAbstractRODataset nor in TZStoredProc. An error occurs just when you execute something like ZQuery1.SQL.Text := 'select * from orders where id = :id;'...
by olehs
22.07.2012, 07:54
Forum: 6.6 - stable
Topic: Input parameter count is less then expected
Replies: 8
Views: 1365

I guess, first parameter causes the problem. 1 is treated as byte, but ftByte is not supported by TZAbstractRODataset.SetStatementParams
by olehs
22.07.2012, 07:41
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

By the way, the same error occurres, when passing Value as Variant of type ftByte (DELPHI12_UP)
by olehs
22.07.2012, 07:24
Forum: 6.6 - stable
Topic: [patch_done] Input parameter count is less then expected
Replies: 18
Views: 3031

How about TZStoredProc? Shouldn't it be fixed too?
by olehs
14.03.2010, 16:11
Forum: ZeosLib 7.0 Beta Forum
Topic: [bug_fixed] AV when PostgreSQL server connection lost
Replies: 18
Views: 1697

Wild_Pointer,
I also thank you for your patience in solving the problem :thanks:
by olehs
24.12.2009, 09:26
Forum: ZeosLib 7.0 Beta Forum
Topic: [bug_fixed] AV when PostgreSQL server connection lost
Replies: 18
Views: 1697

Yes, it helped. I didn't test it so good, but it helped in the project, where I got this AV
by olehs
14.11.2009, 17:36
Forum: ZeosLib 7.0 Beta Forum
Topic: [bug_fixed] AV when PostgreSQL server connection lost
Replies: 18
Views: 1697

[bug_fixed] AV when PostgreSQL server connection lost

Hi, There is a little problem in fix made in rev.489 (Fixed memory leak when connection failed - by mdaems - Mantis Bug 136): ZDbcPostgreSqlUtils.pas (line 783) procedure CheckPostgreSQLError ... if PlainDriver.GetStatus(Handle) = CONNECTION_BAD then begin PlainDriver.Finish(Handle); Handle := nil; ...
by olehs
09.11.2009, 21:18
Forum: ZeosLib 7.0 Beta Forum
Topic: [patch_done] TZUpdateSQL - Implicit AnsiString typecast with
Replies: 2
Views: 338

[patch_done] TZUpdateSQL - Implicit AnsiString typecast with

TZUpdateSql.FillStatement calls SetString, which accepts AnsiString, for UnicodeString data.
Possible fix is in the attachment