firebird sql generators error #489
Labels
accepted
Issue has been accepted and inserted in a future milestone
as-designed
The behaviour is correct/expected
Milestone
Hi Daniele,
there a bug in firebird sql construct if there are fields with spaces.
it's all ok for select, but update or insert crash.
in MVCFramework.SQLGenerators.Firebird should be modified CreateInsertSQL and CreateUpdateSQL
adding call to "GetFieldNameForSQL" and "GetParamNameForSQL" during sql creation.
row 107: lSB.Append(GetFieldNameForSQL(lKeyValue.Value.FieldName) + ',');
row 121: lSB.Append(':' + GetParamNameForSQL(lKeyValue.Value.FieldName) + ',');
and
row 186 : Result := Result + GetFieldNameForSQL(lKeyValue.Value.FieldName) + ' = :' + GetParamNameForSQL(lKeyValue.Value.FieldName) + ',';
ciao :)
The text was updated successfully, but these errors were encountered: