Search found 6 matches

by alpinistbg
21.02.2018, 14:48
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

Re: TZStoredProc trouble with output parameter, MSSQL

EgonHugeist wrote:Hi, should be resolved by R4225 \testing-7.2
Resolved.

When no resultset, then ExecProc must be called, not Open, but IMHO that is the way it should be.

Regards,
by alpinistbg
13.02.2018, 14:07
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

Re: TZStoredProc trouble with output parameter, MSSQL

Sorry to say that, but still have trouble with the output parameter. Actually, I have modified the previous SP with one input, one output parameters and no result set like that (note the comment on select): ALTER PROCEDURE [dbo].[test_sp1] @p1 int = 0, @p2 VARCHAR(16) output AS BEGIN SET NOCOUNT ON;...
by alpinistbg
12.02.2018, 18:48
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

Re: TZStoredProc trouble with output parameter, MSSQL

It seems that the issue has been resolved. My test cases work as expected. Thanks a lot!

Kind regards,
by alpinistbg
10.02.2018, 15:21
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

Re: TZStoredProc trouble with output parameter, MSSQL

Any stacktrace? Which lines did call RaiseTypeMismatchError before? Here is the invocation and the stack trace: procedure TForm1.Button4Click(Sender: TObject); begin ZStoredProc2.Params.ParamValues['@p2'] := 'abc'; ZStoredProc2.Active := True; end; --- Stack trace --- #0 fpc_raiseexception at :0 #1...
by alpinistbg
09.02.2018, 21:46
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

Re: TZStoredProc trouble with output parameter, MSSQL

EgonHugeist wrote:Any stacktrace?
Which lines did call RaiseTypeMismatchError before?
AFAIR ZVariant.pas line 718 with Value.VType = vtRawByteString (line 690)
Funny thing is that with ZeosLib 7.1.4-stable there is no such error.
by alpinistbg
09.02.2018, 16:39
Forum: ZeosLib 7.2 Forum
Topic: TZStoredProc trouble with output parameter, MSSQL
Replies: 9
Views: 1974

TZStoredProc trouble with output parameter, MSSQL

Hello there, I'm currently experiencing a problem with TZStoredProc calling a MSSQL stored procedure with an output parameter. Using Lazarus 1.7, FPC 3.1.1, i386-win32-win32, Zeos 7.2.1-rc (fpcdeluxe v1.4.0k for i386-win32), MSSQL 2008 (SQL Server 11.0.2100) The SP was defined as: SET ANSI_NULLS ON ...