You are not logged in.
@ab commit https://github.com/synopse/mORMot/commi … b9d01eb74b "small comments / error message enhancement - no functional change"
error: EORMException with message 'Invalid EncodeAsSQLPrepared(1)'
-      if FieldCount=0 then
-        raise EORMException.Create('Invalid EncodeAsSQLPrepared(0)');
+      if FieldCount<2 then
+        raise EORMException.CreateUTF8('Invalid EncodeAsSQLPrepared(%)',[FieldCount]);it doesn't work with that anymore if you only have 1 column:
   update table set col1 = 'test' where id = 1;Offline
You are right!
I forgot that ID was not part of FieldCount.
Reverted by https://synopse.info/fossil/info/b4af70dcdc
Offline
thanks
Offline