Skip to content

firebird sql generators error #489

@drcrck

Description

@drcrck

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 :)

Metadata

Metadata

Labels

acceptedIssue has been accepted and inserted in a future milestoneas-designedThe behaviour is correct/expected

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions