我从 AssertEqualsTable 中收到此错误“数据类型文本和文本在等于运算符中不兼容。”
然后
“'TableCompare' 过程试图返回 NULL 状态,这是不允许的。将返回状态 0。”
select *
into #Actual
from [dbo].[InvoiceOut];
--make expected table an empty table of #actual's structure because we truncate so it should be empty.
SELECT TOP(0) *
INTO #Expected
FROM #Actual;
EXEC tSQLt.AssertEqualsTable '#Expected', '#Actual';
--相关表格信息的一部分
CREATE TABLE [dbo].[InvoiceOut](
...
[InsertField] [text] NULL,
[DeductibleText] [text] NULL,
[BarcodeText] [text] NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]