Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
965d94109d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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
 begin
   // Just check for really invalid stuff; actual size is
   // Just check for really invalid stuff; actual size is
   // dependent on the record...
   // 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]);
     DatabaseErrorFmt(SInvalidFieldSize,[AValue]);
 end;
 end;