steffengy / tiberius

TDS 7.4 (mssql / Microsoft SQL Server) async driver for rust. Fork at: https://github.com/prisma/tiberius
Apache License 2.0
150 stars 2 forks source link

call stored procedure cause panic! #109

Closed gaoqiangz closed 4 years ago

gaoqiangz commented 4 years ago
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE p_test
AS
BEGIN
    SET NOCOUNT ON;
END
GO

call:

conn.simple_exec("EXEC myDB.dbo.p_test")

exception:

thread 'tokio-runtime-worker-0' panicked at 'resultset: unexpected token: ReturnStatus(0)', C:\Users\pc\.cargo\registry\src\github.com-1ecc6299db9ec823\tiberius-0.3.2\src\query.rs:85:32

stored procedure in production environment reports this error :

thread 'tokio-runtime-worker-0' panicked at 'resultset: unexpected token: DoneInProc(TokenDone { status: MORE, cur_cmd: 186, done_rows: 0 })', C:\Users\pc\.cargo\registry\src\github.com-1ecc6299db9ec823\tiberius-0.3.2\src\query.rs:85:32
steffengy commented 4 years ago

Duplicate of #108.