2
0
Эх сурвалжийг харах

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 жил өмнө
parent
commit
965d94109d

+ 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;