浏览代码

fcl-db: allow 0 length in binary field (MSSQL can have a null/0 field length in a view)

git-svn-id: trunk@44040 -
ondrej 5 年之前
父节点
当前提交
965d94109d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-db/src/base/fields.inc

+ 1 - 1
packages/fcl-db/src/base/fields.inc

@@ -2389,7 +2389,7 @@ class procedure TBinaryField.CheckTypeSize(AValue: Longint);
 begin
   // Just check for really invalid stuff; actual size is
   // dependent on the record...
-  If AValue<1 then
+  If AValue<0 then // MSSQL can have a null/0 field length in a view
     DatabaseErrorFmt(SInvalidFieldSize,[AValue]);
 end;