You are not logged in.
Hi ab,
found a bug in db.core
Input: SelectInClause('id'{PropName},[1]{Values: array of TID},''{suffix},10{ValuesInlinedMax}) called from
TOrm.FillPrepare(...)
if n = 1 then
problem: Missing CancelLastComma(')') or
or Remove the comma in ...
AddDirect(')', ':', ',')
result SQL-where, without fix: 'id=:(1):,'
Thanks,
Tobias
Offline
Problem comes from the commit
Commit b323f9a from last week / all: use new overloaded TTextWriter.AddDirect whenever possible
@@ -2548,12 +2548,12 @@ function SelectInClause(const PropName: RawUtf8; const Values: array of TID;
I didn't find any other "AddDirect" mistakes when I skimmed through it.
Offline
Oups....
Please try
https://github.com/synopse/mORMot2/commit/9f99b38bea
Offline